:root {
  --paper: #f5f0e4;
  --ink: #263f39;
  --muted: #77847a;
  --gold: #e9c68a;
  --line: #d7d9c9;
  --scale: 1;
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: #152e26;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ba7335;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button {
  touch-action: manipulation;
}
#world,
#app {
  position: fixed;
  left: var(--play-left, 0px);
  top: var(--play-top, 0px);
  width: var(--play-width, 100%);
  height: var(--play-height, 100%);
}
#app {
  transform: translateZ(0);
}
#world canvas {
  display: block;
  touch-action: none;
}
#app {
  pointer-events: none;
}
body:not(.playing):not(.film-mode) #app::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 46, 38, 0.79), rgba(23, 43, 35, 0.15) 70%),
    linear-gradient(0deg, rgba(18, 43, 32, 0.45), transparent 40%);
  pointer-events: none;
}
#app button,
#app a,
#app input,
#app select,
#app label,
#app .panel,
#app .hero,
#app .scrim {
  pointer-events: auto;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* A hidden control must stay hidden even when its component uses flex/grid. */
[hidden] {
  display: none !important;
}
.panel.photo-review {
  width: min(760px, 94vw);
}
.photo-review .panel-head {
  padding: 18px 24px;
}
.photo-review .panel-body {
  padding: 0 24px 22px;
}
.captured-photo {
  margin: 0;
  padding: 10px;
  border: 1px solid #d9d9c6;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 5px 18px #2e443716;
}
.captured-photo img {
  display: block;
  width: 100%;
  max-height: 49dvh;
  object-fit: contain;
  background: #233f36;
  border-radius: 3px;
}
.captured-photo figcaption {
  padding: 12px 6px 5px;
}
.captured-photo strong {
  display: block;
  font:
    23px Georgia,
    serif;
  margin-bottom: 6px;
}
.captured-photo span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #61715d;
}
.photo-save-state {
  font-size: 12px;
  color: #45684d;
  line-height: 1.5;
  margin: 14px 0;
}
.photo-review-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.photo-review-actions button {
  font-size: 12px;
  padding: 12px 16px;
}
.joystick[data-pace]:not([data-pace=""])::after {
  content: attr(data-pace);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 20px;
  background: #294a40ee;
  color: #fff0cc;
  font-size: 10px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .photo-review .panel-head {
    padding: 16px;
  }
  .photo-review .panel-head h2 {
    font-size: 25px;
  }
  .photo-review .panel-body {
    padding: 0 14px 18px;
  }
  .captured-photo {
    padding: 7px;
  }
  .captured-photo img {
    max-height: 41dvh;
  }
  .captured-photo strong {
    font-size: 21px;
  }
  .photo-review-actions {
    gap: 8px;
  }
  .photo-review-actions .primary,
  .photo-review-actions .secondary {
    flex: 1;
    padding: 12px 8px;
  }
  .photo-review-actions .quiet {
    flex-basis: 100%;
    min-height: 32px;
    padding: 6px;
  }
}
.choosing-explorer #app > :not(#modal) {
  visibility: hidden;
}
.explorer-choice {
  position: fixed;
  inset: 0;
  color: #fff4dd;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #203e35f2 0%,
    #203e35d9 32%,
    #203e3500 65%
  );
}
.explorer-copy {
  position: absolute;
  left: 5vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(430px, 43vw);
  pointer-events: auto;
}
.explorer-copy h1 {
  font:
    400 clamp(32px, 4.6vw, 64px)/1.06 Georgia,
    serif;
  margin: 18px 0;
  letter-spacing: -0.025em;
}
.explorer-copy p {
  font-size: 14px;
  line-height: 1.7;
  color: #dae2cb;
}
.explorer-options {
  display: flex;
  gap: 14px;
  margin: 24px 0;
}
.explorer-option {
  width: 172px;
  border: 2px solid #e2dabb55;
  border-radius: 12px;
  background: #f3edda14;
  color: #fff4df;
  padding: 8px 10px 12px;
  text-align: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.explorer-option.selected {
  border-color: #edc788;
  background: #e4ce9b24;
}
.explorer-option:hover {
  background: #e4ce9b30;
}
.explorer-portrait {
  width: 94px;
  height: 104px;
  fill: initial;
  stroke: none;
}
.explorer-option strong {
  display: block;
  font:
    24px Georgia,
    serif;
}
.explorer-option small {
  display: block;
  font-size: 9px;
  margin: 7px 0 12px;
}
.explorer-selected {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #ecd3a1;
}
.explorer-caption {
  position: absolute;
  bottom: 12%;
  left: 66%;
  transform: translateX(-50%);
  font:
    32px Georgia,
    serif;
  text-align: center;
  text-shadow: 0 2px 12px #263d35;
}
.explorer-caption small {
  display: block;
  margin-top: 10px;
  font:
    9px system-ui,
    sans-serif;
  letter-spacing: 0.2em;
}
.landmark-label {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #29483fef;
  color: #fff3d7;
  border: 1px solid #f4ddb36b;
  border-radius: 9px;
  padding: 11px 16px;
  box-shadow: 0 5px 25px #1e39263d;
  text-align: center;
  max-width: 290px;
}
.landmark-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 6px);
  border: 6px solid transparent;
  border-top-color: #29483fef;
}
.landmark-label strong {
  display: block;
  font:
    20px Georgia,
    serif;
  margin: 5px 0;
}
.landmark-label span {
  display: block;
  font-size: 10px;
}
.landmark-label .landmark-category {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #dfc899;
}
.landmark-label.ready {
  background: #f4e8ce;
  color: #2b493b;
  border-color: #f8dc98;
}
.landmark-label.ready .landmark-category {
  color: #617752;
}
.landmark-label.ready::after {
  border-top-color: #f4e8ce;
}
.drone-telemetry {
  position: absolute;
  top: 112px;
  right: 28px;
  padding: 17px 20px;
  border-radius: 9px;
}
.drone-telemetry strong {
  display: block;
  font-size: 26px;
  margin: 9px 0 6px;
}
.drone-telemetry small {
  font-size: 11px;
  font-weight: 400;
}
.drone-telemetry span {
  display: block;
  font-size: 10px;
}
.drone-telemetry button {
  margin-top: 9px;
  padding: 4px 0;
  font-size: 11px;
}
#tutorial {
  position: fixed;
  top: calc(var(--play-top, 0px) + 112px);
  left: calc(var(--play-left, 0px) + 28px);
  width: 340px;
  max-height: calc(var(--play-height, 100dvh) - 260px);
  overflow: auto;
  padding: 20px 22px 16px;
  border-radius: 10px;
  color: #2b4439;
  background: #f8f1dfef;
  box-shadow: 0 8px 35px #233e3330;
  border: 1px solid #fff4d7;
  backdrop-filter: blur(14px);
  z-index: 3;
}
.tour-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tour-top .eyebrow {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.tour-top .quiet {
  padding: 4px 0;
  font-size: 10px;
}
#tutorial .tour-toggle {
  min-height: 44px;
  padding: 8px 6px;
  white-space: nowrap;
}
#tutorial.minimized {
  width: auto;
  max-width: calc(100vw - 28px);
  max-height: none;
  padding: 0 12px;
}
#tutorial.minimized .tour-top {
  gap: 14px;
}
#tutorial h2 {
  font:
    27px/1.1 Georgia,
    serif;
  margin: 16px 0 12px;
}
#tutorial p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
  color: #566554;
}
.tour-controls {
  background: #e4e7d4;
  padding: 11px 12px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
}
.tour-task {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.tour-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid #9bab84;
  border-radius: 50%;
  font-size: 9px;
}
.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
}
.tour-actions .secondary,
.tour-actions .primary {
  font-size: 11px;
  padding: 10px 12px;
  min-height: 39px;
}
.tour-actions .quiet {
  font-size: 10px;
  padding: 8px 0;
}
.tour-progress {
  display: flex;
  gap: 4px;
  margin-top: 17px;
}
.tour-progress i {
  height: 3px;
  flex: 1;
  background: #d7ddc7;
  border-radius: 2px;
}
.tour-progress i.done {
  background: #78926b;
}
.tutorial-active .goal,
.tutorial-active .hint,
.tutorial-active .field-chip-toggle {
  display: none;
}
body.tour-offer #goal,
body.tour-offer .goal {
  display: none !important;
}
.tutorial-active .toast {
  top: auto;
  bottom: 110px;
}
@media (max-width: 720px) {
  .explorer-choice {
    background: linear-gradient(0deg, #203e35 0%, #203e35f0 27%, #203e3500 70%);
  }
  .explorer-copy {
    top: auto;
    bottom: 22px;
    left: 6%;
    width: 88%;
    transform: none;
  }
  .explorer-copy h1 {
    font-size: 30px;
    margin: 8px 0;
  }
  .explorer-copy h1 br,
  .explorer-copy p,
  .explorer-caption {
    display: none;
  }
  .explorer-options {
    gap: 10px;
    margin: 12px 0;
  }
  .explorer-option {
    flex: 1;
    width: auto;
    padding: 10px;
    text-align: left;
    position: relative;
  }
  .explorer-portrait {
    float: left;
    width: 56px;
    height: 67px;
    margin-right: 7px;
  }
  .explorer-option strong {
    font-size: 20px;
    margin-top: 4px;
  }
  .explorer-option small {
    display: none;
  }
  .explorer-selected {
    display: block;
    margin-top: 10px;
    font-size: 8px;
  }
  .explorer-copy .actions {
    flex-wrap: nowrap;
  }
  .explorer-copy .primary,
  .explorer-copy .ghost {
    font-size: 12px;
    padding: 12px;
  }
  #tutorial {
    top: calc(var(--play-top, 0px) + 90px);
    left: calc(var(--play-left, 0px) + 14px);
    width: min(320px, calc(100vw - 28px));
    max-height: calc(var(--play-height, 100dvh) - 330px);
    padding: 14px 16px;
  }
  #tutorial h2 {
    font-size: 23px;
    margin: 10px 0;
  }
  #tutorial p {
    font-size: 11px;
  }
  .tour-controls {
    margin: 10px 0;
    padding: 8px;
    font-size: 10px;
  }
  .tour-task {
    font-size: 10px;
  }
  .tour-actions {
    margin-top: 10px;
  }
  .tour-progress {
    margin-top: 10px;
  }
  .drone-telemetry {
    top: 94px;
    right: 14px;
    padding: 11px;
  }
  .tutorial-active .drone-telemetry,
  body.night-watch .drone-telemetry {
    display: none;
  }
  .landmark-label {
    max-width: 230px;
    padding: 9px 12px;
  }
  .landmark-label strong {
    font-size: 17px;
  }
}
@media (max-height: 560px) and (min-width: 721px) {
  #tutorial {
    top: calc(var(--play-top, 0px) + 86px);
    max-height: calc(var(--play-height, 100dvh) - 155px);
    width: 300px;
    padding: 12px 16px;
  }
  .explorer-copy h1 {
    font-size: 32px;
  }
  .explorer-copy p {
    display: none;
  }
  .explorer-options {
    margin: 12px 0;
  }
  .explorer-portrait {
    height: 74px;
  }
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.brand small {
  display: block;
  opacity: 0.65;
  font-size: 9px;
  letter-spacing: 0.23em;
  margin-top: 5px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}
.hero {
  position: absolute;
  inset: 0;
  background: none;
  color: #fff6df;
  display: flex;
  flex-direction: column;
  padding: 35px 5vw;
}
.hero-enter .hero-top,
.hero-enter .hero-main,
.hero-enter .hero-footer {
  animation: hero-copy-in 0.9s ease both;
}
.hero-enter .hero-top {
  animation-delay: 0.12s;
}
.hero-enter .hero-main {
  animation-delay: 0.28s;
}
.hero-enter .hero-footer {
  animation-delay: 0.55s;
}
@keyframes hero-copy-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-enter .hero-top,
  .hero-enter .hero-main,
  .hero-enter .hero-footer {
    animation: none;
  }
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-main {
  margin: auto 0;
  max-width: 620px;
  padding: 30px 0;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(75px, 10vw, 146px);
  letter-spacing: -0.065em;
  font-weight: 400;
  line-height: 0.95;
  margin: 18px 0 12px;
}
.hero h2 {
  font-size: 13px;
  letter-spacing: 0.45em;
  font-weight: 450;
  text-transform: uppercase;
  margin: 24px 0;
}
.hero p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 370px;
  color: #e3e5d3;
}
.hero-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  opacity: 0.8;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.primary {
  background: var(--gold);
  color: #273d33;
  border-radius: 5px;
  padding: 15px 25px;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.primary:hover {
  background: #f5d9a8;
  transform: translateY(-1px);
}
.secondary {
  background: #e5e8d9;
  color: #37564c;
  border: 1px solid #d0d6c4;
  border-radius: 5px;
  padding: 13px 20px;
  min-height: 46px;
  font-size: 13px;
  font-weight: 600;
}
.secondary:hover {
  background: #d8dfca;
}
.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid #ffffff50;
  border-radius: 5px;
  padding: 13px 18px;
  font-size: 12px;
  min-height: 46px;
}
.quiet {
  color: #657568;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px;
}
.icon {
  height: 45px;
  width: 45px;
  border: 1px solid #f4f1dd70;
  background: #f7f3e5e8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #35584e;
  box-shadow: 0 3px 15px #243e3520;
  position: relative;
}
.icon:hover,
.icon.active {
  background: #eacf9a;
}
.glass {
  background: #f8f4e9ed;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 35px #253f3320;
  border: 1px solid #fff7df80;
}
.hud-top {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.field-chip {
  display: contents;
}
.field-chip-toggle {
  display: none;
}
.place {
  border-radius: 8px;
  padding: 15px 20px;
  min-width: 185px;
}
.place strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  display: block;
  margin-top: 4px;
}
.place small {
  font-size: 10px;
  color: #758174;
  display: block;
  margin-top: 5px;
}
.tools {
  display: flex;
  gap: 9px;
}
.compass {
  position: absolute;
  left: 50%;
  top: 27px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 25px;
  color: #fff6e0;
  text-shadow: 0 1px 5px #263f39;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.compass b {
  font-size: 14px;
}
.wayfinder,
.lens-compass {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
  padding: 0;
  max-width: none;
  background: none;
  border: none;
  box-shadow: none;
  text-align: center;
}
.wayfinder[hidden],
.lens-compass[hidden] {
  display: none !important;
}
.wayfinder-dial,
.lens-dial {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2px solid #f0d39a;
  background: radial-gradient(circle at 50% 36%, #5a8070, #1a3328 68%);
  box-shadow:
    0 0 0 6px #1a332866,
    0 0 0 calc(8px + 10px * var(--lens-strength, 0.35)) #e9c68a55,
    0 10px 28px #0e1c1688;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.wayfinder-dial::before,
.lens-dial::before {
  content: "";
  position: absolute;
  top: 9px;
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: #f0d39a;
}
.wayfinder-dial::after,
.lens-dial::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #e9c68a40;
  border-radius: 50%;
}
.wayfinder-dial i,
.lens-dial i {
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 40px solid #f3d48a;
  transform-origin: 50% 70%;
  filter: drop-shadow(0 3px 6px #000a);
}
.wayfinder span,
.lens-compass span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff6e0;
  text-shadow:
    0 1px 0 #1a3328,
    0 2px 12px #0e1c16,
    0 0 18px #0e1c16cc;
}
body.lens-on .compass,
body.lens-on .wayfinder {
  visibility: hidden;
}
.goal {
  position: fixed;
  bottom: 30px;
  left: 28px;
  width: 310px;
  border-radius: 9px;
  padding: 19px 21px;
  border-left: 3px solid #d3a85c;
}
.goal h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
  margin: 10px 0;
}
.goal p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: #657165;
}
.goal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.goal .quiet {
  padding: 0;
  font-size: 11px;
}
.hud-notes {
  display: contents;
}
.hud-note-toggle {
  display: none;
}
.progress-dots {
  display: flex;
  gap: 5px;
}
.progress-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d7d9c9;
}
.progress-dots i.done {
  background: #69816b;
}
.context {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 28px;
  padding: 12px 21px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: #f6f1df;
  background: #294a40ee;
  box-shadow: 0 5px 20px #28403330;
  font-size: 12px;
}
.key {
  border: 1px solid #ffffff65;
  border-radius: 4px;
  min-width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}
.mode {
  position: absolute;
  bottom: 35px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode button {
  border-radius: 25px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  background: #f6f3e5ee;
  color: #3c574b;
}
.mode button.active {
  background: #35594c;
  color: #f8f0dc;
}
.hint {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow: 0 1px 4px #263e37;
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.toast {
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translate(-50%, -15px);
  background: #f8f2df;
  color: #375749;
  padding: 15px 25px;
  border-radius: 7px;
  box-shadow: 0 8px 40px #263b3535;
  font-size: 13px;
  opacity: 0;
  transition: 0.3s;
  max-width: 90%;
  text-align: center;
  z-index: 4;
}
body:has(#wayfinder:not([hidden])) .toast,
body.lens-on .toast {
  top: 178px;
  bottom: auto;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast b {
  display: block;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}
.scrim {
  position: absolute;
  inset: 0;
  background: #193b315e;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 16;
}
.panel {
  background: var(--paper);
  border: 1px solid #fdf7e5;
  border-radius: 13px;
  box-shadow: 0 30px 100px #18352e50;
  width: min(970px, 100%);
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  font-size: calc(14px * var(--scale));
  overflow: hidden;
}
.panel.small {
  width: min(660px, 100%);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px 20px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-head h2 {
  font-family: Georgia, serif;
  font-size: 33px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}
.panel-head .icon {
  box-shadow: none;
  background: #e6e8db;
  border: none;
  flex-shrink: 0;
}
.panel-body {
  overflow: auto;
  padding: 26px 30px 30px;
  overscroll-behavior: contain;
  line-height: 1.65;
}
.panel-body h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 13px;
}
.panel-body p {
  color: #626f60;
  margin: 0 0 16px;
}
.panel-body .lede {
  font-size: 17px;
  color: #415748;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 25px;
  gap: 22px;
  overflow: auto;
  flex-shrink: 0;
}
.tabs button {
  background: none;
  color: #7a8475;
  padding: 17px 2px 14px;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  white-space: nowrap;
}
.tabs button.active {
  border-color: #557663;
  color: #294b3e;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: #fffaf0;
  border: 1px solid #dce0d0;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  color: var(--ink);
}
button.card:hover {
  border-color: #86a087;
  background: #edf0df;
}
.card h3 {
  font-size: 23px;
  margin: 8px 0;
}
.card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.card small {
  color: #819078;
  font-size: 10px;
}
.chip {
  display: inline-block;
  border: 1px solid #c6cfb8;
  color: #648062;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 10px;
  line-height: 1.5;
}
.chip.done {
  background: #dce5cc;
  border-color: #dce5cc;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.row label {
  flex: 1;
}
.row small {
  display: block;
  color: #758170;
  font-size: 11px;
  margin-top: 4px;
}
.row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #486b56;
}
.row select {
  background: #fffcf3;
  border: 1px solid var(--line);
  padding: 8px;
  color: #355646;
  border-radius: 4px;
}
.row input[type="range"] {
  accent-color: #567257;
  width: 130px;
}
.source {
  display: block;
  font-size: 11px;
  color: #6f7f69;
  margin-top: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice {
  background: #e8e9d9;
  border-left: 3px solid #91a280;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.6;
  margin: 20px 0;
}
.lab-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.lab-entry p {
  margin: 0;
  flex: 1 1 220px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.map-wrap {
  position: relative;
  background: #e4e5ce;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1.5;
}
.map-wrap svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: #f6f0dd;
  color: #42614e;
  border: 1px solid #9baa8a;
  box-shadow: 0 2px 6px #304b3920;
  padding: 0;
}
.map-pin.done {
  background: #6f8968;
  color: white;
}
.map-pin.player {
  background: #e5ae67;
  width: 15px;
  height: 15px;
  border: 3px solid white;
  pointer-events: none;
}
.map-label {
  position: absolute;
  font-size: 11px;
  font-weight: 650;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: #667555;
  letter-spacing: 0.03em;
}
.map-legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: #7a866d;
  margin: 9px 0 20px;
}
.map-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #faf6e9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 15px;
}
.map-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.map-pin.is-next,
.map-pin.is-coach {
  z-index: 3;
  background: #fff6df;
  border-color: #e9c68a;
  color: #3e5240;
  box-shadow:
    0 0 0 3px #f0d39a,
    0 0 0 10px #e9c68a40,
    0 0 22px #e9c68a99;
  animation: coach-pulse 1.5s ease-in-out infinite;
}
.map-wrap.is-guided {
  overflow: visible;
}
.map-guide {
  margin: 0 0 12px;
  font-size: 13px;
  color: #3e5240;
}
.map-guide strong {
  font-weight: 700;
}
.map-detail-actions .is-coach {
  position: relative;
}
.map-pin.is-nav {
  background: #35594c;
  color: #f8f0dc;
}
.map-detail h3 {
  margin: 0 0 4px;
  font-size: 24px;
}
.map-detail p {
  font-size: 12px;
  margin: 0;
}
.photo-card {
  padding: 0;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  display: block;
  background: #d4dbc5;
}
.photo-caption {
  padding: 13px 17px;
}
.photo-caption h3 {
  font-size: 19px;
  margin: 0 0 5px;
}
.photo-caption p {
  font-size: 10px;
  margin: 0;
}
.camera-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #fff8e6;
}
.camera-top {
  display: flex;
  position: absolute;
  top: 25px;
  left: 30px;
  right: 30px;
  justify-content: space-between;
  align-items: center;
}
.camera-brand {
  text-shadow: 0 1px 4px #203d32;
}
.viewfinder {
  position: absolute;
  inset: 22% 24%;
  border: 1px solid #fff4d730;
  border-radius: 5px;
}
.viewfinder:before,
.viewfinder:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #fff6dfb3;
  clip-path: polygon(
    0 0,
    10% 0,
    10% 2%,
    2% 2%,
    2% 15%,
    0 15%,
    0 0,
    100% 0,
    100% 15%,
    98% 15%,
    98% 2%,
    90% 2%,
    90% 0,
    100% 0,
    100% 100%,
    90% 100%,
    90% 98%,
    98% 98%,
    98% 85%,
    100% 85%,
    100% 100%,
    0 100%,
    0 85%,
    2% 85%,
    2% 98%,
    10% 98%,
    10% 100%,
    0 100%
  );
}
.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 200;
  opacity: 0.6;
}
.camera-ui .look-hint {
  top: auto;
  bottom: 28%;
  transform: translate(-50%, 0);
}
.camera-subject {
  position: absolute;
  bottom: 24%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 5px #264431;
}
.camera-subject strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 31px;
}
.camera-subject small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.camera-bottom {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
}
.shutter {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid #fff4e0;
  background: #ffffff35;
  box-shadow: inset 0 0 0 6px #466858;
  display: grid;
  place-items: center;
  color: #fff7e8;
}
.shutter:hover {
  background: #e9cc96;
}
.zoom-label {
  font-size: 11px;
  width: 30px;
  text-align: center;
}
.flash {
  position: absolute;
  inset: 0;
  background: #fff8e4;
  opacity: 0;
  pointer-events: none;
}
.flash.fire {
  animation: flash 0.4s ease-out;
}
.transition {
  position: absolute;
  inset: 0;
  background: #eee7d3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 20;
}
.transition.show {
  opacity: 1;
  pointer-events: auto;
}
@keyframes flash {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}
.lab-canvas {
  width: 100%;
  height: 280px;
  display: block;
  background: #d3c0a0;
  border-radius: 9px;
  touch-action: none;
  cursor: crosshair;
}
.lab-progress {
  height: 5px;
  background: #d9d8c6;
  border-radius: 4px;
  margin: 14px 0;
  overflow: hidden;
}
.lab-progress i {
  display: block;
  background: #698663;
  height: 100%;
  transition: width 0.2s;
}
.lab-grains {
  display: flex;
  gap: 8px;
  margin: -6px 0 8px;
  flex-wrap: wrap;
}
.lab-grains span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e8ead8;
  color: #5a7056;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.lab-grains span b {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 13px;
  color: #3f5946;
}
.lab-grains span.is-active {
  background: #496b54;
  color: #f6f1df;
}
.lab-grains span.is-active b {
  color: #f0d39a;
}
.lab-grains span.is-done {
  outline: 1px solid #c5d4b0;
}
.fossil-context-card {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4ead3;
  border: 1px solid #e2d2a8;
  color: #3f5946;
}
.fossil-context-card .eyebrow {
  margin-bottom: 4px;
}
.fossil-context-card strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 4px;
}
.fossil-context-card p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.45;
}
.fossil-layer-tag {
  position: absolute;
  transform: translate(-50%, -110%);
  min-width: 148px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbf1d9ee;
  border: 1px solid #ecd099;
  color: #305443;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 8px 24px #1e352844;
  opacity: 0;
}
.fossil-layer-tag.show {
  opacity: 1;
  animation: fossil-tag-in 0.45s ease;
}
.fossil-layer-tag .eyebrow {
  color: #6d7f58;
  font-size: 9px;
}
.fossil-layer-tag strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  margin: 2px 0 3px;
}
.fossil-layer-tag small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
}
@keyframes fossil-tag-in {
  from {
    opacity: 0;
    transform: translate(-50%, -90%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -110%);
  }
}
.time-veil {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, #dcc9a0cc, #152e26f2 72%);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.time-veil.show {
  opacity: 1;
}
.time-veil.lift {
  opacity: 0;
}
.time-copy {
  text-align: center;
  color: #f6f1df;
  text-shadow: 0 2px 16px #152e26;
}
.time-copy strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
  margin: 8px 0 4px;
  color: #f0d39a;
}
.time-copy small {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 14px;
}
.time-copy p {
  margin: 0;
  font-size: 15px;
  max-width: 320px;
}
.time-skip {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 13;
  pointer-events: auto;
  color: #f6f1df;
  background: #243f39aa;
}
.reduced-motion .time-veil,
.reduced-motion .fossil-layer-tag.show {
  animation: none;
  transition: none;
}
.tool-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.tool-row button {
  background: #e3e8d8;
  color: #50704e;
  border: 1px solid #cbd4bf;
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 12px;
}
.tool-row button.active {
  background: #496b54;
  color: white;
}
.timeline {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 23px;
  align-items: stretch;
}
.layers {
  height: 220px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}
.layers div {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 10px;
  cursor: pointer;
}
.layer-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.layer-copy h3 {
  font-size: 29px;
}
.layer-copy p {
  font-size: 13px;
}
.story-count {
  font-size: 11px;
  color: #819077;
  margin-bottom: 12px;
}
.story p {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #415646;
  line-height: 1.7;
}
.story-illustration {
  height: 85px;
  background: linear-gradient(
    165deg,
    transparent 47%,
    #b4b99a 48% 62%,
    #8a9c7d 63% 80%,
    #6c8667 81%
  );
  border-radius: 6px;
  margin-bottom: 23px;
}
.survey-board {
  background: #e2e4cc;
  border: 1px solid #d0d5bc;
  border-radius: 8px;
  min-height: 220px;
  position: relative;
  margin: 20px 0;
}
.survey-animal {
  position: absolute;
  background: #897052;
  color: #f9eed4;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12px;
}
.survey-animal.marked {
  background: #3f694e;
  outline: 3px solid #e2c78e;
}
.ancient-banner {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  color: #fff2d4;
  text-align: center;
  text-shadow: 0 2px 10px #365744;
}
.ancient-banner h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 39px;
  margin: 9px 0;
}
.ancient-bottom {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}
.ancient-bottom p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.night-watch-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: 520px;
  width: min(90%, 520px);
  text-align: center;
  padding: 16px 18px 14px;
  z-index: 6;
  pointer-events: auto;
}
.night-watch-panel p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 8px;
}
.night-watch-panel .smallprint {
  margin-bottom: 10px;
}
.night-watch-panel .actions {
  justify-content: center;
  margin-top: 4px;
}
body.night-watch .hint,
body.night-watch .context,
body.night-watch .lens-compass {
  visibility: hidden;
  pointer-events: none;
}
.touch-controls {
  display: none;
  position: absolute;
  bottom: 65px;
  left: 22px;
  right: 22px;
  justify-content: space-between;
  align-items: end;
  pointer-events: none;
}
.joystick {
  width: 108px;
  height: 108px;
  border: 1px solid #fff9dc80;
  background: #f6f1dd25;
  border-radius: 50%;
  position: relative;
  pointer-events: auto;
  touch-action: none;
}
.joystick i {
  position: absolute;
  left: 34px;
  top: 34px;
  width: 40px;
  height: 40px;
  background: #f4ecd6b3;
  border-radius: 50%;
  box-shadow: 0 2px 8px #17352a30;
  pointer-events: none;
}
.touch-actions {
  display: flex;
  gap: 10px;
}
.touch-actions button {
  width: 53px;
  height: 53px;
  min-height: 48px;
  border-radius: 50%;
  background: #f8f0dbe0;
  color: #375945;
  pointer-events: auto;
}
.control-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: 13px;
}
.control-grid dt {
  color: #3f5f4a;
  font-weight: 600;
}
.control-grid dd {
  margin: 0;
  color: #71816b;
}
.loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: none;
  color: #fff6df;
  text-align: center;
  pointer-events: auto;
}
.loader h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 62px;
  letter-spacing: -0.05em;
  margin: 16px;
  color: #fff6df;
}
.loader p {
  font-size: 13px;
  color: #c5cbb8;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #cfd4bf;
  border-top-color: #567053;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stats {
  display: flex;
  gap: 30px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}
.stat small {
  font-size: 10px;
  color: #839077;
}
.empty {
  padding: 50px 25px;
  text-align: center;
  color: #819071;
}
.empty svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
}
.warning {
  color: #ac694b !important;
}
.error {
  color: #8b422f;
  padding: 12px;
  background: #f8ddc4;
  border-radius: 6px;
  font-size: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0;
  color: #4b694e;
}
.check input {
  accent-color: #517050;
  width: 20px;
  height: 20px;
}
.complete-badge {
  font-size: 42px;
  display: block;
  color: #728d69;
  margin-bottom: 16px;
}
.kit-celebration {
  animation: kit-panel-in 0.55s ease;
  box-shadow:
    0 0 0 1px #e9c68a88,
    0 30px 100px #18352e50,
    0 0 48px #e9c68a33;
}
.kit-celebration .panel-head h2 {
  animation: kit-title-in 0.6s ease 0.08s both;
}
.kit-celebration .lede {
  animation: kit-fade-up 0.5s ease 0.18s both;
}
.kit-celebration .panel-body > p:not(.lede) {
  animation: kit-fade-up 0.5s ease 0.28s both;
}
.kit-celebration .actions {
  animation: kit-fade-up 0.45s ease 0.72s both;
}
.celebrate-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 92px;
  margin: 4px 0 8px;
}
.celebrate-hero .complete-badge {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 54px;
  color: #e9c68a;
  text-shadow: 0 0 18px #e9c68a88;
  animation: kit-star 0.9s ease both;
}
.celebrate-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.celebrate-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 12px;
  margin: -6px 0 0 -1.5px;
  border-radius: 2px;
  background: #e9c68a;
  transform: rotate(calc(var(--i) * 45deg)) translateY(-10px);
  animation: kit-burst 0.7s ease calc(var(--i) * 0.03s) both;
}
.celebrate-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 4px 0 14px;
}
.celebrate-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7d9c9;
  animation: kit-dot 0.35s ease calc(0.32s + var(--n, 0) * 0.07s) both;
}
.celebrate-dots i:nth-child(1) {
  --n: 0;
}
.celebrate-dots i:nth-child(2) {
  --n: 1;
}
.celebrate-dots i:nth-child(3) {
  --n: 2;
}
.celebrate-dots i:nth-child(4) {
  --n: 3;
}
.celebrate-dots i:nth-child(5) {
  --n: 4;
}
.celebrate-dots i:nth-child(6) {
  --n: 5;
}
.celebrate-dots i:nth-child(7) {
  --n: 6;
}
.kit-celebration .challenge-card {
  animation: kit-fade-up 0.5s ease var(--d, 0.4s) both;
}
body.kit-celebrating .scrim {
  background: radial-gradient(circle at 50% 42%, #e9c68a22, #193b315e 62%);
  animation: kit-scrim 0.6s ease;
}
@keyframes kit-panel-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kit-title-in {
  from {
    opacity: 0;
    letter-spacing: 0.04em;
  }
  to {
    opacity: 1;
    letter-spacing: -0.03em;
  }
}
@keyframes kit-star {
  0% {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  55% {
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes kit-burst {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 45deg)) translateY(-8px) scale(0.4);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 45deg)) translateY(-38px) scale(0.2);
  }
}
@keyframes kit-dot {
  from {
    transform: scale(0.5);
    background: #d7d9c9;
  }
  to {
    transform: none;
    background: #698663;
    box-shadow: 0 0 0 3px #e9c68a44;
  }
}
@keyframes kit-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kit-scrim {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.reduced-motion .kit-celebration,
.reduced-motion .kit-celebration *,
.reduced-motion.kit-celebrating .scrim {
  animation: none !important;
}
.reduced-motion .celebrate-burst {
  display: none;
}
.reduced-motion .celebrate-dots i {
  background: #698663;
  box-shadow: 0 0 0 3px #e9c68a44;
}
.region-banner {
  position: absolute;
  top: 29%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff3dc;
  opacity: 0;
  transition: opacity 0.5s;
  text-shadow: 0 2px 14px #1d402a;
  pointer-events: none;
}
.region-banner.show {
  opacity: 1;
}
.mode-shift {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff3dc;
  text-shadow: 0 2px 14px #1d402a;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mode-shift.show {
  opacity: 1;
}
.mode-shift b {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 32px;
}
.mode-shift small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.challenge-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 8px;
}
.challenge-card h3 {
  font-size: 20px;
  margin: 0 0 6px;
}
.challenge-card p {
  margin: 0 0 12px;
}
.challenge-card .primary,
.challenge-card button {
  width: 100%;
}
.region-banner h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  margin: 8px 0;
}
.region-banner small {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.smallprint {
  font-size: 10px !important;
  line-height: 1.6 !important;
  color: #8a9380 !important;
}
.left-handed .touch-controls {
  flex-direction: row-reverse;
}
.reduced-motion *,
.reduced-motion *:before {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}
@media (pointer: coarse) {
  .touch-controls {
    display: flex;
  }
  .hint {
    display: none;
  }
  .context .key {
    display: none;
  }
  .goal {
    bottom: 185px;
  }
  .context {
    bottom: 20px;
  }
  .mode {
    bottom: 20px;
  }
  .camera-bottom {
    bottom: 26px;
  }
  .goal {
    width: 270px;
    padding: 14px 17px;
  }
  .goal h3 {
    font-size: 21px;
  }
  .goal p {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .hero {
    padding: 22px 6vw;
  }
  .hero h1 {
    font-size: 82px;
  }
  .hero h2 {
    font-size: 10px;
    letter-spacing: 0.32em;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-footer {
    font-size: 8px;
  }
  .hero-footer span:last-child {
    display: none;
  }
  .brand {
    font-size: 9px;
  }
  .brand small {
    font-size: 8px;
  }
  .hero-main {
    padding: 15px 0;
  }
  .hud-top {
    left: 15px;
    right: 15px;
    top: 15px;
    gap: 10px;
  }
  .place {
    min-width: 0;
    padding: 11px 13px;
  }
  .place strong {
    font-size: 21px;
  }
  .place small {
    display: none;
  }
  .place .eyebrow {
    font-size: 8px;
  }
  .tools {
    gap: 6px;
  }
  .icon {
    height: 41px;
    width: 41px;
  }
  .compass {
    display: none;
  }
  .goal {
    left: 15px;
    width: 250px;
    bottom: 190px;
  }
  .goal h3 {
    font-size: 20px;
  }
  .goal p {
    font-size: 11px;
  }
  .goal .eyebrow {
    font-size: 8px;
  }
  .mode {
    right: 15px;
    bottom: 20px;
  }
  .mode button {
    padding: 12px;
  }
  .mode button span {
    display: none;
  }
  .context {
    left: 50%;
    transform: translateX(-50%);
    bottom: 186px;
    max-width: calc(100% - 32px);
    text-align: center;
    font-size: 10px;
    padding: 11px 15px;
    white-space: normal;
  }
  .context .key {
    display: none;
  }
  .scrim {
    padding: 10px;
  }
  .panel {
    max-height: 95svh;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-head h2 {
    font-size: 27px;
  }
  .panel-body {
    padding: 20px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  .tabs {
    padding: 0 18px;
    gap: 20px;
  }
  .stats {
    gap: 22px;
  }
  .stat strong {
    font-size: 29px;
  }
  .map-wrap {
    aspect-ratio: 1;
  }
  .map-label {
    font-size: 9px;
  }
  .map-detail {
    display: block;
  }
  .map-detail .primary {
    margin-top: 13px;
  }
  .camera-top {
    left: 18px;
    right: 18px;
    top: 18px;
  }
  .camera-brand .eyebrow {
    font-size: 9px;
  }
  .camera-subject strong {
    font-size: 25px;
  }
  .camera-subject {
    bottom: 27%;
  }
  .story p {
    font-size: 19px;
  }
  .ancient-banner h2 {
    font-size: 31px;
  }
  .region-banner h2 {
    font-size: 37px;
  }
  .timeline {
    grid-template-columns: 70px 1fr;
    gap: 15px;
  }
}
@media (max-height: 550px) {
  .hero h1 {
    font-size: 70px;
  }
  .hero h2 {
    margin: 14px 0;
  }
  .hero p {
    font-size: 12px;
    margin: 5px 0;
    max-width: 340px;
  }
  .hero-actions {
    margin-top: 16px;
  }
  .hero-main {
    padding: 5px 0;
  }
  .hero-footer {
    display: none;
  }
  .hero {
    padding: 17px 4vw;
  }
  .hero-main {
    max-width: 450px;
  }
  .goal {
    bottom: auto;
    top: 91px;
    width: 220px;
    padding: 12px 15px;
  }
  .goal h3 {
    font-size: 18px;
    margin: 6px 0;
  }
  .goal p {
    font-size: 10px;
  }
  .goal-footer {
    margin-top: 8px;
  }
  .hud-top {
    top: 12px;
  }
  .place {
    padding: 9px 14px;
  }
  .place strong {
    font-size: 20px;
  }
  .touch-controls {
    bottom: 65px;
    left: 25px;
    right: 20px;
  }
  .joystick {
    width: 86px;
    height: 86px;
  }
  .joystick i {
    left: 23px;
    top: 23px;
  }
  .toast {
    top: auto;
    bottom: 88px;
  }
  .camera-subject {
    bottom: 30%;
  }
  .shutter {
    width: 59px;
    height: 59px;
  }
  .camera-bottom {
    bottom: 15px;
  }
  .viewfinder {
    inset: 18% 29% 28%;
  }
  .ancient-banner {
    top: 14px;
  }
  .ancient-banner h2 {
    font-size: 29px;
  }
  .ancient-bottom {
    padding: 12px;
    bottom: 15px;
  }
  .ancient-bottom p {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .ancient-bottom .primary {
    min-height: 38px;
    padding: 10px 20px;
  }
  .night-watch-panel {
    bottom: 186px;
    width: min(92%, 420px);
    padding: 12px 14px 10px;
  }
  .night-watch-panel p {
    font-size: 12px;
  }
  .panel-head {
    padding: 13px 20px;
  }
  .panel-head h2 {
    font-size: 26px;
  }
  .panel-body {
    padding: 18px 23px;
  }
  .lab-canvas {
    height: 210px;
  }
}

.arrival {
  position: absolute;
  inset: 0;
  color: #fff5df;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px 5vw;
  background: linear-gradient(0deg, #18352ad4, transparent 65%);
}
.arrival-top,
.arrival-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.arrival-copy {
  margin-top: auto;
  padding: 40px 0;
}
.arrival-copy h1 {
  font:
    400 clamp(30px, 4.7vw, 64px)/1.12 Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 18px 0;
}
.arrival-copy p {
  font-size: 16px;
  color: #e6e4ce;
}
.arrival-actions {
  margin-top: 28px;
}
.arrival-copy .primary {
  min-height: 58px;
  padding: 16px 28px;
  font-size: 16px;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 28px #10241ccc;
}
.arrival-bottom {
  font-size: 10px;
  letter-spacing: 0.15em;
}
.atlas-progress {
  margin-top: 10px !important;
  font-size: 10px !important;
}
.camera-bottom {
  gap: 17px;
}
.camera-bottom .secondary {
  background: #f4f0dfe0;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 11px;
}
.reduced-motion .arrival {
  display: none;
}
@media (max-width: 500px) {
  .arrival {
    padding: 24px;
  }
  .arrival-bottom span:last-child {
    display: none;
  }
  .camera-bottom {
    gap: 12px;
  }
  .camera-bottom .secondary {
    padding: 10px;
  }
  .hero-main {
    max-width: 100%;
  }
}

.field-active .hud-top,
.field-active .mode,
.field-active .context,
.field-active .compass,
.field-active .hint,
.field-active .touch-controls {
  visibility: hidden;
}
.field-active .night-watch-panel,
.field-active .drone-telemetry,
.tablet-open .night-watch-panel,
.tablet-open .drone-telemetry {
  visibility: hidden;
  pointer-events: none;
}
.field-active .scrim {
  background: none;
  backdrop-filter: none;
  justify-content: flex-end;
  pointer-events: none;
  padding: 20px;
}
.field-active .panel {
  width: 310px;
  max-height: 85vh;
  pointer-events: auto;
}
.field-active .panel-head {
  padding: 18px;
}
.field-active .panel-head h2 {
  font-size: 26px;
}
.field-active .panel-body {
  padding: 20px;
  font-size: 12px;
}
.field-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.animal-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fbf1d9e6;
  border: 2px solid #ecd099;
  color: #305443;
  font-size: 15px;
  box-shadow: 0 2px 12px #1e352844;
  pointer-events: auto;
}
.animal-pin.marked {
  background: #3d7253;
  color: white;
}
.field-active .panel {
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  .field-active .scrim {
    align-items: flex-end;
    padding: 10px;
  }
  .field-active .panel {
    width: 100%;
    max-height: 32vh;
  }
  .field-active .panel-head {
    padding: 8px 15px;
  }
  .field-active .panel-head h2 {
    font-size: 21px;
  }
  .field-active .panel-body {
    padding: 12px 16px;
  }
  .field-active .panel .notice,
  .field-active .panel .source,
  .field-active .panel .lede {
    display: none;
  }
  .field-active .panel p {
    font-size: 11px;
    margin: 0;
  }
  .field-active .panel .actions {
    margin-top: 8px;
  }
  .field-active .panel .row {
    padding: 6px 0;
  }
  .field-active .panel .primary {
    padding: 9px 15px;
    min-height: 38px;
  }
}

.field-active .lens-compass {
  display: none;
}
@media (max-width: 760px) {
  .mode button {
    padding: 11px;
  }
  .context {
    max-width: calc(100% - 32px);
  }
  .lens-dial,
  .wayfinder-dial {
    width: 88px;
    height: 88px;
  }
  .lens-dial i,
  .wayfinder-dial i {
    border-left-width: 11px;
    border-right-width: 11px;
    border-bottom-width: 32px;
  }
  .wayfinder span,
  .lens-compass span {
    font-size: 18px;
  }
}

.runoff {
  width: 100%;
  height: auto;
  stroke: none;
}
.runoff text {
  font: 600 11px system-ui;
  fill: #435642;
  letter-spacing: 2px;
}
.water-flow {
  animation: runoff 1s linear infinite;
}
@keyframes runoff {
  to {
    stroke-dashoffset: -48;
  }
}
.water-bench {
  display: flex;
  justify-content: center;
  gap: 60px;
  background: #e9e8d9;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 22px;
  text-align: center;
}
.water-bench h3 {
  font: 400 16px Georgia;
  margin: 12px 0 0;
}
.sample {
  width: 94px;
  height: 125px;
  border: 3px solid #becbbc;
  border-top: 0;
  border-radius: 2px 2px 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 7px 0 #fff8;
}
.sample:before {
  content: "";
  position: absolute;
  inset: 30px 0 0;
  background: #a9cbc68c;
  border-top: 2px solid #cde2d2;
}
.cloudy-sample:before {
  background: #b6a878c9;
}
.sample span {
  position: absolute;
  top: 55px;
  left: 34px;
  font: 25px Georgia;
  color: #4e6554;
}
.sample:after {
  content: "";
  position: absolute;
  top: 15px;
  right: 6px;
  width: 10px;
  height: 75px;
  background: repeating-linear-gradient(
    0deg,
    #72917c 0 1px,
    transparent 1px 15px
  );
}

.touch-actions button[data-action="rise"],
.touch-actions button[data-action="lower"] {
  display: none;
}
.survey-mode .touch-actions button[data-action="rise"],
.survey-mode .touch-actions button[data-action="lower"] {
  display: block;
}
@media (max-width: 760px) {
  .touch-controls {
    display: flex;
  }
  .hint {
    display: none;
  }
  .touch-actions {
    gap: 8px;
  }
  .touch-actions button {
    width: 48px;
    height: 48px;
  }
  .icon {
    width: 44px;
    height: 44px;
  }
  .goal {
    top: 96px;
    bottom: auto;
    left: 15px;
    width: min(320px, calc(100% - 30px));
    padding: 12px 16px;
  }
  .goal h3 {
    font-size: 19px;
    margin: 6px 0;
  }
  .goal p {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .goal .atlas-progress {
    display: none;
  }
  .goal-footer {
    margin-top: 9px;
  }
  .toast {
    top: auto;
    bottom: 190px;
    width: calc(100% - 30px);
    font-size: 11px;
    padding: 12px;
  }
  body:has(#wayfinder:not([hidden])) .toast,
  body.lens-on .toast {
    top: auto;
    bottom: 190px;
  }
  .toast b {
    font-size: 20px;
  }
  .camera-subject {
    white-space: normal;
    width: 90%;
  }
  .camera-subject strong {
    font-size: 24px;
  }
  .camera-subject small {
    font-size: 11px;
  }
}
@media (max-width: 460px) {
  .place {
    max-width: 135px;
    padding: 11px;
  }
  .place .eyebrow {
    display: none;
  }
  .place strong {
    font-size: 19px;
    margin: 0;
  }
  .tools {
    gap: 5px;
  }
  .hud-top {
    gap: 8px;
    align-items: center;
  }
  .goal {
    top: 81px;
  }
  .hero-top .ghost {
    max-width: 135px;
    font-size: 10px;
    padding: 8px;
  }
  .hero-top .tools .icon {
    display: none;
  }
}
@media (max-height: 550px) {
  .goal {
    top: 90px;
    width: 220px;
  }
  .goal p {
    display: none;
  }
  .goal .goal-footer {
    margin-top: 6px;
  }
  .toast {
    top: auto;
    bottom: 72px;
    width: auto;
  }
  .touch-actions button {
    width: 45px;
    height: 45px;
  }
  .joystick {
    width: 86px;
    height: 86px;
  }
  .goal .eyebrow {
    font-size: 8px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .goal {
    bottom: 175px;
  }
  .context {
    left: 28px;
    transform: none;
    max-width: calc(100% - 435px);
    white-space: normal;
    bottom: 20px;
    font-size: 11px;
  }
  .mode {
    bottom: 20px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) and (max-height: 550px) {
  .goal {
    top: 95px;
    bottom: auto;
  }
}
@media (max-width: 460px) {
  .place strong {
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 760px) {
  .hud-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 76px;
    left: 12px;
    width: min(220px, calc(50vw - 46px));
    pointer-events: none;
    z-index: 4;
  }
  body.lens-on .hud-notes {
    top: 148px;
  }
  .hud-notes .goal {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0;
    padding: 8px 10px 8px 12px;
    pointer-events: auto;
  }
  .goal .hud-note-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    border-radius: 18px;
    background: #e7ead8;
    color: #3e5240;
  }
  .hud-note-full {
    display: none;
  }
  .goal .eyebrow {
    font-size: 8px;
  }
  .goal:not(.is-open) .hud-note-detail,
  .goal:not(.is-open) .progress-dots {
    display: none;
  }
  .goal:not(.is-open) h3 {
    font-size: 15px;
    line-height: 1.25;
    margin: 3px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .goal-footer {
    margin-top: 6px;
    justify-content: flex-end;
    gap: 8px;
  }
  .goal.is-open .goal-footer {
    justify-content: space-between;
  }
  .goal .quiet:not(.hud-note-toggle) {
    font-size: 10px;
    white-space: nowrap;
  }
  .goal.is-open h3 {
    font-size: 17px;
    margin: 4px 0;
  }
  .goal.is-open .hud-note-detail p {
    display: block;
    font-size: 11px;
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 460px) {
  .hud-notes {
    top: 70px;
    width: min(292px, calc(100% - 72px));
  }
}

@media (max-height: 550px) {
  .hud-notes {
    top: 64px;
  }
  .goal:not(.is-open) .eyebrow {
    display: none;
  }
}

.is-locked {
  visibility: hidden !important;
  pointer-events: none !important;
}
.look-hint {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #243f39cc;
  color: #f6f1df;
  font-size: 12px;
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 5;
}
body.is-coaching #world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--coach-x, 50%) var(--coach-y, 78%),
    rgba(16, 38, 30, 0) 0,
    rgba(16, 38, 30, 0.1) var(--coach-r, 42px),
    rgba(10, 26, 22, 0.52) calc(var(--coach-r, 42px) + 110px),
    rgba(8, 22, 18, 0.66) 100%
  );
  animation: coach-dim-in 0.45s ease;
}
body.is-coaching #world {
  filter: brightness(0.7) saturate(0.9);
}
body.is-coaching #tutorial {
  z-index: 5;
}
.is-coach {
  box-shadow:
    0 0 0 3px #f0d39a,
    0 0 0 10px #e9c68a40,
    0 0 28px #e9c68acc !important;
  animation: coach-pulse 1.5s ease-in-out infinite;
  z-index: 8;
  outline: 2px solid #fff6df;
  outline-offset: 3px;
  opacity: 1 !important;
  filter: none !important;
}
.panel button.is-coach,
.panel .card.is-coach {
  position: relative;
}
.context.is-coach,
.landmark-label.is-coach {
  background: #4a7364f5;
  color: #fff6df;
  border-color: #f0d39a;
}
.is-coach.coach-flash {
  animation:
    coach-flash 0.7s ease,
    coach-pulse 1.5s ease-in-out 0.7s infinite;
}
.is-coach[data-coach]::after {
  content: attr(data-coach);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2f4334;
  background: #fff6df;
  border: 1px solid #e9c68a;
  border-radius: 999px;
  padding: 5px 10px;
  pointer-events: none;
  box-shadow: 0 4px 16px #1a332866;
  animation: coach-label-in 0.45s ease;
}
.mode button,
.touch-actions button,
.tools .icon {
  position: relative;
}
body.is-coaching .tools .icon:not(.is-coach),
body.is-coaching .mode button:not(.is-coach),
body.is-coaching .touch-actions button:not(.is-coach) {
  opacity: 0.22;
}
body.is-coaching .place,
body.is-coaching .compass,
body.is-coaching .goal,
body.is-coaching .hint,
body.is-coaching .wayfinder,
body.is-coaching .lens-compass,
body.is-coaching .drone-telemetry {
  opacity: 0.28;
}
body.is-coaching .field-chip {
  opacity: 0.28;
}
body.is-coaching .field-chip .place,
body.is-coaching .field-chip .goal {
  opacity: 1;
}
body.is-guided-lock .joystick {
  pointer-events: none;
  opacity: 0.28;
}
body.is-guided-lock .is-coach,
body.is-coaching .is-coach {
  z-index: 7;
  opacity: 1;
}
.tour-actions .tour-needed {
  box-shadow:
    0 0 0 3px #f0d39a,
    0 0 0 10px #e9c68a40,
    0 0 22px #e9c68a99;
  animation: coach-pulse 1.5s ease-in-out infinite;
}
@keyframes coach-dim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes coach-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px #f0d39a,
      0 0 0 10px #e9c68a33,
      0 0 24px #e9c68abb;
  }
  50% {
    box-shadow:
      0 0 0 6px #fff1c8,
      0 0 0 18px #e9c68a22,
      0 0 36px #e9c68add;
  }
}
@keyframes coach-flash {
  0% {
    box-shadow:
      0 0 0 0 #e9c68a00,
      0 0 0 0 #e9c68a00;
  }
  35% {
    box-shadow:
      0 0 0 8px #fff6df,
      0 0 0 22px #e9c68a66,
      0 0 52px #e9c68aee;
  }
  100% {
    box-shadow:
      0 0 0 3px #f0d39a,
      0 0 0 10px #e9c68a40,
      0 0 28px #e9c68acc;
  }
}
@keyframes coach-label-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.is-coaching #world::after,
  .is-coach,
  .is-coach.coach-flash,
  .is-coach[data-coach]::after,
  .tour-actions .tour-needed {
    animation: none;
  }
}
#landscape-gate {
  position: fixed;
  left: var(--play-left, 0px);
  top: var(--play-top, 0px);
  width: var(--play-width, 100%);
  height: var(--play-height, 100%);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: #243f39f2;
  color: #f6f1df;
  text-align: center;
  padding: 28px;
}
#landscape-gate[hidden] {
  display: none !important;
}
body.needs-landscape #landscape-gate {
  display: flex;
}
body.needs-landscape #world {
  filter: brightness(0.45);
}
.landscape-card strong {
  display: block;
  font:
    28px/1.2 Georgia,
    serif;
  margin: 16px 0 8px;
}
.landscape-card p {
  margin: 0;
  font-size: 14px;
  max-width: 280px;
  opacity: 0.85;
}
.landscape-phone {
  width: 42px;
  height: 68px;
  margin: 0 auto;
  border: 3px solid #e9c68a;
  border-radius: 8px;
  animation: landscape-turn 1.8s ease-in-out infinite;
}
@keyframes landscape-turn {
  40% {
    transform: rotate(90deg);
  }
  70% {
    transform: rotate(90deg);
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  .hud-top {
    top: max(10px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
  }
  .place small {
    display: none;
  }
  .hud-notes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: max(68px, calc(env(safe-area-inset-top) + 56px));
    left: max(12px, env(safe-area-inset-left));
    width: min(220px, calc(50vw - 48px));
    pointer-events: none;
    z-index: 4;
  }
  body.lens-on .hud-notes {
    top: max(140px, calc(env(safe-area-inset-top) + 126px));
  }
  .hud-notes .goal {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0;
    padding: 8px 10px 8px 12px;
    pointer-events: auto;
  }
  .goal h3 {
    font-size: 16px;
    margin: 4px 0;
  }
  .goal:not(.is-open) .eyebrow {
    display: block;
  }
  .compass {
    display: none;
  }
  .mode {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
    left: auto;
  }
  .mode .is-locked {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .context {
    position: absolute;
    top: auto !important;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    max-width: min(280px, 38vw);
    z-index: 5;
  }
  .context.is-coach[data-coach]::after {
    top: auto;
    bottom: calc(100% + 6px);
  }
  .touch-controls {
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
  }
  .touch-actions {
    margin-bottom: 50px;
  }
  .touch-actions .is-locked {
    display: none !important;
  }
  .hint {
    display: none;
  }
  .wayfinder,
  .lens-compass {
    top: max(8px, env(safe-area-inset-top));
  }
  .wayfinder-dial,
  .lens-dial {
    width: 84px;
    height: 84px;
  }
  .wayfinder-dial i,
  .lens-dial i {
    border-left-width: 10px;
    border-right-width: 10px;
    border-bottom-width: 30px;
  }
  .wayfinder span,
  .lens-compass span {
    font-size: 18px;
  }
  .arrival {
    padding: 16px 4vw 14px;
  }
  .arrival-copy {
    padding: 8px 0 4px;
  }
  .arrival-copy h1 {
    font-size: clamp(26px, 4.4vw, 44px);
    margin: 8px 0;
  }
  .arrival-copy p {
    font-size: 14px;
  }
  .arrival-actions {
    margin-top: 16px;
  }
  .arrival-copy .primary {
    min-height: 52px;
    font-size: 15px;
  }
  .arrival-bottom span:last-child {
    display: none;
  }
}

@media (max-width: 760px),
  (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  .field-chip {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: min(280px, calc(100% - 168px));
    border-radius: 8px;
    background: #f8f4e9ed;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 35px #253f3320;
    border: 1px solid #fff7df80;
    border-left: 3px solid #d3a85c;
    overflow: hidden;
    z-index: 4;
    pointer-events: auto;
  }
  .field-chip .place {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    max-width: none;
    padding: 8px 8px 4px 12px;
    background: none;
    box-shadow: none;
    border: 0;
    backdrop-filter: none;
  }
  .field-chip .place-copy {
    min-width: 0;
  }
  .field-chip:not(.wildlife) #place-sub {
    display: none;
  }
  .field-chip.wildlife #place-sub {
    display: block;
    color: #8a4b2a;
  }
  .field-chip .place strong {
    font-size: 16px;
    line-height: 1.15;
    margin-top: 0;
  }
  .field-chip-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 18px;
    background: #e7ead8;
    color: #3e5240;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }
  .field-chip .hud-notes {
    display: block;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    pointer-events: auto;
    z-index: auto;
  }
  body.lens-on .field-chip .hud-notes {
    top: auto;
  }
  .field-chip .goal {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 10px 8px 12px;
    background: none;
    box-shadow: none;
    border: 0;
    backdrop-filter: none;
    pointer-events: auto;
  }
  .field-chip .goal > .eyebrow {
    display: none;
  }
  .field-chip .goal .hud-note-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    border-radius: 18px;
    background: #e7ead8;
    color: #3e5240;
    text-decoration: none;
  }
  .field-chip .goal:not(.is-open) .hud-note-detail,
  .field-chip .goal:not(.is-open) .progress-dots {
    display: none;
  }
  .field-chip .goal:not(.is-open) h3 {
    font-size: 14px;
    line-height: 1.25;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .field-chip .goal.is-open h3 {
    font-size: 16px;
    margin: 2px 0 6px;
  }
  .field-chip .goal.is-open .hud-note-detail p {
    display: block;
    font-size: 11px;
    line-height: 1.45;
    margin: 0 0 6px;
  }
  .tools .icon.is-locked {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .field-chip .goal-footer {
    margin-top: 4px;
    justify-content: flex-end;
    gap: 8px;
  }
  .field-chip .goal.is-open .goal-footer {
    justify-content: space-between;
  }
  .field-chip.minimized {
    max-width: none;
    width: auto;
    border-left-width: 0;
    border-radius: 999px;
  }
  .field-chip.minimized .place {
    padding: 3px;
  }
  .field-chip.minimized .place-copy,
  .field-chip.minimized .hud-notes {
    display: none;
  }
  .field-chip.minimized .field-chip-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .landmark-label {
    display: none !important;
  }
  .tutorial-active .field-chip {
    display: none;
  }
  #tutorial {
    top: calc(var(--play-top, 0px) + max(10px, env(safe-area-inset-top)));
    left: calc(var(--play-left, 0px) + max(12px, env(safe-area-inset-left)));
    width: min(300px, calc(100vw - 24px));
    max-height: calc(var(--play-height, 100dvh) - 118px);
    padding: 8px 12px 10px;
    z-index: 5;
  }
  #tutorial h2 {
    font-size: 18px;
    margin: 4px 0 4px;
  }
  #tutorial p {
    font-size: 11px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tour-controls {
    margin: 6px 0;
    padding: 6px 8px;
    font-size: 10px;
  }
  .tour-task {
    font-size: 10px;
  }
  .tour-actions {
    margin-top: 6px;
  }
  .tour-progress {
    margin-top: 6px;
  }
  #tutorial.minimized {
    top: calc(var(--play-top, 0px) + max(10px, env(safe-area-inset-top)));
    left: calc(var(--play-left, 0px) + max(12px, env(safe-area-inset-left)));
    right: auto;
    width: auto;
    max-width: min(240px, calc(100vw - 24px));
    max-height: none;
    padding: 0 10px;
  }
  .mode button span {
    display: none;
  }
  .mode button {
    min-width: 44px;
    padding: 8px 10px;
  }
  .context {
    max-width: min(200px, 30vw);
  }
  .explorer-copy {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: min(440px, 72vw);
    transform: none;
  }
  .explorer-copy h1 {
    font-size: clamp(22px, 4.2vh, 32px);
    margin: 6px 0;
  }
  .explorer-copy h1 br,
  .explorer-copy p,
  .explorer-caption {
    display: none;
  }
  .explorer-options {
    gap: 8px;
    margin: 8px 0;
  }
  .explorer-option {
    flex: 1;
    width: auto;
    padding: 8px;
  }
  .explorer-portrait {
    width: 52px;
    height: 58px;
  }
  .explorer-option small {
    display: none;
  }
}

body.tutorial-film,
body.tutorial-film * {
  cursor: none !important;
}
body.tutorial-film #landscape-gate,
body.tutorial-film .touch-controls {
  display: none !important;
}
body.film-mode,
body.film-mode * {
  cursor: none !important;
}
body.film-mode #landscape-gate {
  display: none !important;
}
body.film-mode .toast,
body.film-mode .look-hint,
body.film-mode .mode-shift,
body.film-mode .hint,
body.film-mode .touch-controls,
body.film-mode .hero,
body.film-mode .arrival {
  display: none !important;
}
body.film-cinematic #app > *:not(#flash):not(#transition),
body.film-quiet #app > *:not(#flash):not(#transition) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.film-play .hud-notes,
body.film-play .tools,
body.film-play .wayfinder,
body.film-play .lens-compass,
body.film-play .drone-telemetry,
body.film-play .region-banner,
body.film-play .night-watch-panel,
body.film-play #night-watch {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.film-atlas .hud-top,
body.film-atlas .compass,
body.film-atlas .mode,
body.film-atlas .context,
body.film-atlas .hud-notes,
body.film-atlas .tools,
body.film-atlas .wayfinder,
body.film-atlas .lens-compass {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.film-play .hud-top,
body.film-play .compass,
body.film-play .mode,
body.film-play .context {
  opacity: 0;
  animation: film-hud-in 1.1s ease forwards;
}
body.film-play.film-hud-ready .hud-top,
body.film-play.film-hud-ready .compass,
body.film-play.film-hud-ready .mode,
body.film-play.film-hud-ready .context {
  opacity: 1;
  animation: none;
}
@keyframes film-hud-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
body.film-mode .panel-body .smallprint,
body.film-mode .panel-body .actions {
  display: none;
}

.sheet-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sheet-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e6e8db;
  color: #375945;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}
.sheet-toggle:hover,
.sheet-toggle:focus-visible {
  background: #dce3d2;
}

@media (max-width: 760px),
  (pointer: coarse) and (max-width: 1024px),
  (orientation: landscape) and (max-height: 540px) {
  .scrim {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: #193b3140;
    backdrop-filter: blur(3px);
  }
  .panel.sheet,
  .panel.sheet.small,
  .panel.sheet.photo-review {
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 50px #18352e45;
  }
  .panel.sheet-compact {
    max-height: min(46svh, 420px);
  }
  .panel.sheet-expanded {
    max-height: min(88svh, 920px);
  }
  .panel.sheet-minimized {
    max-height: none;
  }
  .panel.sheet-minimized .tabs,
  .panel.sheet-minimized .panel-body {
    display: none;
  }
  .panel.sheet-minimized .panel-head {
    padding: 10px 14px;
    border-bottom: 0;
  }
  .panel.sheet-minimized .panel-head h2 {
    font-size: 18px;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58vw;
  }
  .panel.sheet .panel-head {
    padding: 10px 14px 8px;
    gap: 10px;
  }
  .panel.sheet .panel-head h2 {
    font-size: 20px;
  }
  .panel.sheet .panel-body {
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  }
  .panel.sheet .tabs {
    padding: 0 14px;
    gap: 14px;
  }
  .panel.sheet .tabs button {
    padding: 10px 2px 8px;
    font-size: 12px;
  }
  .panel.sheet-compact .map-wrap {
    aspect-ratio: auto;
    height: min(26svh, 200px);
    min-height: 128px;
  }
  .panel.sheet-expanded .map-wrap {
    aspect-ratio: 4 / 3;
    max-height: 48svh;
  }
  .panel.sheet-compact .sheet-more,
  .panel.sheet-compact .map-legend,
  .panel.sheet-compact .smallprint,
  .panel.sheet-compact .source,
  .panel.sheet-compact .map-detail p,
  .panel.sheet-compact .panel-body > p:not(.lede) {
    display: none;
  }
  .panel.sheet-compact .card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .panel.sheet-compact .stats {
    gap: 12px;
    margin: 0 0 10px;
  }
  .panel.sheet-compact .stat strong {
    font-size: 22px;
  }
  .panel.sheet-compact .grid {
    gap: 8px;
  }
  .panel.sheet-compact .card {
    padding: 10px 12px;
  }
  .panel.sheet-compact .card h3,
  .panel.sheet-compact .panel-body h3 {
    font-size: 16px;
    margin: 0 0 6px;
  }
  .panel.sheet-compact .lede {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .panel.sheet-compact .row {
    padding: 4px 0;
  }
  .panel.sheet-compact .row small {
    display: none;
  }
  .panel.sheet-compact .panel-body > h3 {
    display: none;
  }
  .panel.sheet-compact .lab-canvas {
    height: 150px;
  }
  .panel.sheet-compact.photo-review .captured-photo img {
    max-height: 22svh;
  }
  .panel.sheet-compact .photo-review-actions {
    margin-top: 8px;
  }
  .panel.sheet-compact .map-detail {
    padding: 10px 12px;
    margin-top: 8px;
  }
  .panel.sheet-compact .map-detail h3 {
    font-size: 16px;
    margin: 0 0 6px;
  }
  .panel.sheet-compact .map-detail-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .field-active .panel.sheet-compact {
    max-height: min(40svh, 300px);
  }
  .field-active .panel.sheet-expanded {
    max-height: min(82svh, 720px);
  }
  body.sheet-peek .scrim {
    background: none;
    backdrop-filter: none;
    pointer-events: none;
    align-items: flex-end;
    padding: 0;
  }
  body.sheet-peek .panel {
    pointer-events: auto;
  }
  body.sheet-peek .touch-controls {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .night-watch-panel {
    width: min(94%, 400px);
    padding: 10px 12px 8px;
    bottom: 16px;
  }
  .night-watch-panel .smallprint {
    display: none;
  }
  .landmark-label {
    display: none !important;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .panel.sheet-compact {
    max-height: min(72svh, 340px);
  }
  .panel.sheet-compact .map-wrap {
    height: min(28svh, 120px);
    min-height: 88px;
  }
  .field-active .panel.sheet-compact {
    max-height: min(72svh, 340px);
  }
}

.orienteering-map {
  background: #f5f0df;
  color: #283b32;
  border-radius: 12px;
  overflow: hidden;
}
.om-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
}
.om-toolbar strong {
  flex: 1 1 220px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.om-toolbar button,
.om-inspector button {
  padding: 9px 12px;
  background: #fffaf0;
  color: #283b32;
  border: 1px solid #c3b99e;
  border-radius: 6px;
  cursor: pointer;
}
.orienteering-map canvas {
  display: block;
  width: 100%;
  height: min(65vh, 680px);
  touch-action: none;
  cursor: crosshair;
}
.om-legend {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
}
.om-inspector {
  padding: 12px;
  border-top: 1px solid #c3b99e;
}
.om-inspector[hidden] {
  display: none;
}
.om-inspector output {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.om-inspector textarea {
  width: 100%;
  min-height: 120px;
  font: 12px monospace;
  color: #283b32;
  background: #fffaf0;
}
.orienteering-map:fullscreen {
  overflow: auto;
  border-radius: 0;
}
.orienteering-map:fullscreen canvas {
  height: 72vh;
}
@media (max-width: 600px) {
  .om-toolbar {
    gap: 5px;
    padding: 8px;
  }
  .om-toolbar button {
    font-size: 12px;
    padding: 9px;
  }
  .orienteering-map canvas {
    height: 52vh;
  }
}
/* Orienteering uses the field tablet, with its own unassisted navigation HUD. */
.og-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #fff8e8;
}
.og-hud button,
.og-hud .joystick {
  pointer-events: auto;
}
.og-top {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.og-brand {
  display: grid;
  gap: 5px;
  padding: 15px 20px;
  border-radius: 14px;
  background: #203c35ed;
  box-shadow: 0 8px 30px #10251d22;
}
.og-brand small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #cfdebf;
}
.og-brand strong {
  font:
    24px Georgia,
    serif;
}
.og-brand span {
  font-size: 12px;
  color: #d5ddca;
}
.og-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.og-tools button {
  background: #fcf5e5f0;
  color: #263f33;
  border: 1px solid #ddd4bb;
}
.og-compass {
  position: absolute;
  top: 138px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px 12px 12px;
  background: #f8f1dfed;
  color: #273e33;
  border-radius: 16px;
}
.og-compass > div:last-child {
  display: grid;
  gap: 3px;
}
.og-compass strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.og-compass small {
  font-size: 11px;
}
.og-compass .quiet {
  padding: 4px 0;
  font-size: 12px;
  min-height: 32px;
  color: #355743;
  text-align: left;
}
.og-dial {
  position: relative;
  width: 76px;
  height: 76px;
  border: 1px solid #a4ac93;
  border-radius: 50%;
  background: #fffbef;
}
.og-dial span {
  position: absolute;
  font: bold 10px sans-serif;
}
.og-north {
  top: 3px;
  left: 33px;
}
.og-east {
  right: 4px;
  top: 31px;
}
.og-south {
  bottom: 3px;
  left: 33px;
}
.og-west {
  left: 3px;
  top: 31px;
}
.og-dial i {
  position: absolute;
  width: 12px;
  height: 48px;
  top: 13px;
  left: 31px;
  background: linear-gradient(#c64937 50%, #8b9a89 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform-origin: center;
}
.og-race {
  position: absolute;
  top: 138px;
  right: 24px;
  display: grid;
  text-align: right;
  gap: 5px;
  padding: 14px 20px;
  background: #203c35e8;
  border-radius: 14px;
}
.og-race strong {
  font:
    32px ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
}
.og-race span {
  font-size: 13px;
}
.og-punch {
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 12px;
  background: #fff6de;
  color: #263f33;
  border: 1px solid #e4d4ac;
  box-shadow: 0 6px 25px #17251c33;
  max-width: 90%;
}
.og-hint {
  position: absolute;
  bottom: 27px;
  left: 15%;
  width: 70%;
  text-align: center;
  font-size: 13px;
  text-shadow: 0 1px 4px #17251c;
}
.og-expert .og-race,
.og-expert .og-hint,
.og-expert .og-brand span {
  display: none;
}
.og-expert .og-brand {
  padding: 10px 14px;
}
.og-expert .og-brand strong {
  font-size: 18px;
}
.og-lede {
  font:
    26px/1.3 Georgia,
    serif;
  color: #284235;
}
.og-difficulties {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 28px;
}
.og-difficulty {
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: left;
  padding: 14px;
  border: 1px solid #c7c8af;
  border-radius: 10px;
  background: #f9f5e8;
  color: #294535;
  cursor: pointer;
}
.og-difficulty.selected {
  border: 2px solid #486c4c;
  background: #e7ecd7;
  padding: 13px;
}
.og-difficulty span {
  font-size: 12px;
  line-height: 1.5;
}
.og-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.og-event-card {
  border: 1px solid #d1cbb9;
  border-radius: 12px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #faf6e9;
}
.og-event-card small {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #637553;
}
.og-event-card h3 {
  margin: 9px 0;
}
.og-event-card p {
  font-size: 14px;
  flex: 1;
}
.og-event-card button {
  margin-top: 8px;
}
.og-description-scroll {
  overflow-x: auto;
  margin: 16px 0;
}
.og-descriptions,
.og-splits {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.og-descriptions th,
.og-descriptions td,
.og-splits th,
.og-splits td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #d7d1bd;
}
.og-descriptions th,
.og-splits th {
  background: #e5ead9;
  color: #2d493b;
}
.og-descriptions small {
  display: block;
  color: #68775c;
  padding-top: 3px;
}
.og-descriptions .punched {
  background: #e7efdc;
}
.og-splits button {
  white-space: nowrap;
}
.og-map-status {
  font-size: 13px;
  margin-bottom: 10px;
  color: #486347;
}
.og-heading-readout {
  font-size: 28px;
  font-weight: 600;
  padding: 18px 0;
}
.og-bearing-input {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.og-bearing-input input {
  width: 100px;
  padding: 10px;
}
.og-result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.og-result-stats > div {
  display: grid;
  gap: 5px;
}
.og-result-stats strong {
  font:
    26px Georgia,
    serif;
  color: #284a3a;
}
.og-result-stats span {
  font-size: 12px;
  color: #68745e;
}
.og-score-summary {
  padding: 12px 0;
  font-size: 18px;
}
.og-replay {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.og-replay label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}
.og-replay input {
  min-width: 100px;
  width: 100%;
}
.og-replay output {
  font-size: 13px;
  min-width: 80px;
}
@media (max-width: 700px) {
  .og-top {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .og-brand {
    padding: 10px 14px;
  }
  .og-brand strong {
    font-size: 19px;
  }
  .og-tools button {
    padding: 9px 12px;
    font-size: 12px;
    min-height: 42px;
  }
  .og-compass {
    top: 165px;
    left: 12px;
    padding: 9px;
    gap: 8px;
  }
  .og-compass strong {
    font-size: 17px;
  }
  .og-race {
    top: 165px;
    right: 12px;
    padding: 10px;
    max-width: 40%;
  }
  .og-race strong {
    font-size: 23px;
  }
  .og-race span {
    font-size: 11px;
  }
  .og-punch {
    bottom: 185px;
    font-size: 13px;
    padding: 12px 16px;
    white-space: normal;
  }
  .og-hint {
    bottom: 145px;
    left: 8%;
    width: 84%;
    font-size: 11px;
  }
  .og-difficulties {
    grid-template-columns: repeat(2, 1fr);
  }
  .og-events {
    grid-template-columns: 1fr;
  }
  .og-result-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .og-lede {
    font-size: 23px;
  }
  .og-expert .og-compass {
    top: 145px;
  }
}
@media (max-height: 550px) and (min-width: 701px) {
  .og-compass,
  .og-race {
    top: 112px;
  }
  .og-punch {
    bottom: 34px;
  }
  .og-hint {
    bottom: 10px;
  }
}

/* Guided practice stays separate from competitive navigation assistance. */
.og-tutorial-offer,
.og-lesson-note {
  background: #edf2e7;
  border: 1px solid #becdb7;
  border-left: 4px solid #cc7138;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
}
.og-tutorial-offer h3,
.og-lesson-note h3 {
  margin: 6px 0;
}
.og-lesson {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(380px, calc(100vw - 48px));
  padding: 18px;
  border-radius: 14px;
  background: rgba(247, 244, 230, 0.97);
  color: #203c32;
  border: 1px solid #b8c5af;
  box-shadow: 0 8px 30px #162c2526;
  pointer-events: auto;
}
.og-lesson[hidden],
.og-hint[hidden] {
  display: none;
}
.og-lesson small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6e563a;
}
.og-lesson h3 {
  margin: 7px 0;
  font-size: 20px;
}
.og-lesson p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.og-lesson .actions {
  margin: 12px 0 0;
  gap: 8px;
}
.og-lesson button {
  font-size: 12px;
  padding: 8px 10px;
}
.og-lesson-direction {
  margin-top: 12px;
  padding: 9px;
  border-radius: 6px;
  background: #dce8d5;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 700px) {
  .og-lesson {
    left: 12px;
    bottom: 245px;
    width: calc(100vw - 24px);
    padding: 12px;
    max-height: 32vh;
    overflow-y: auto;
  }
  .og-lesson h3 {
    font-size: 17px;
  }
  .og-lesson p {
    font-size: 12px;
  }
}
@media (max-height: 550px) and (min-width: 701px) {
  .og-lesson {
    left: 210px;
    bottom: 12px;
    max-height: 55vh;
    overflow-y: auto;
  }
}

/* Main menu mode selection. Exploration owns expedition save actions. */
.hero {
  overflow-y: auto;
}
.hero-main {
  max-width: 860px;
  flex-shrink: 0;
}
.hero .hero-intro {
  max-width: none;
  margin: 0 0 20px;
}
.hero-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-mode {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #f4e9cc40;
  border-radius: 12px;
  background: #17352be6;
}
.hero-mode h3 {
  margin: 0 0 8px;
  font-size: 23px;
  font-family: Georgia, serif;
  font-weight: 400;
  color: #fff6df;
}
.hero .hero-mode p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  max-width: none;
}
.hero-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: auto;
}
.hero-mode-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  line-height: 1.2;
}
.hero-mode-actions button svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: middle;
}
.hero-mode-actions .ghost {
  padding: 14px 16px;
}
.hero-top,
.hero-footer {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hero-modes {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-mode {
    padding: 16px;
  }
  .hero-main {
    padding: 20px 0;
  }
  .hero h1 {
    font-size: 76px;
  }
  .hero h2 {
    margin: 16px 0;
  }
  .hero .hero-intro {
    font-size: 14px;
  }
  .hero-mode h3 {
    font-size: 21px;
  }
}
.observatory-open #app,
.observatory-open #tutorial {
  visibility: hidden !important;
  pointer-events: none !important;
}
.observatory-experience {
  position: fixed;
  inset: 0;
  z-index: 1000;
  color: #f3ecdb;
  font:
    15px/1.45 system-ui,
    sans-serif;
  isolation: isolate;
}
.observatory-experience button,
.observatory-experience select {
  font: inherit;
  color: #f3ecdb;
  background: #152430eb;
  border: 1px solid #7c8b9377;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  box-shadow: none;
}
.observatory-experience button:hover {
  background: #314b58;
}
.observatory-experience :focus-visible {
  outline: 3px solid #edcb85;
  outline-offset: 3px;
}
.observatory-experience [hidden] {
  display: none !important;
}
.observatory-experience h2 {
  font:
    500 25px/1.2 Georgia,
    serif;
  margin: 7px 0 16px;
}
.observatory-experience small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #b6c6cf;
}
.observatory-sky,
.observatory-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.observatory-sky {
  background: #02060c;
}
.observatory-overlay {
  touch-action: none;
}
.observatory-bar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(#07121cf5, transparent);
  pointer-events: none;
}
.observatory-bar > * {
  pointer-events: auto;
}
.observatory-bar strong {
  font:
    26px Georgia,
    serif;
}
.observatory-session {
  margin-left: auto;
  font-size: 11px;
}
.observatory-session select {
  display: block;
  max-width: 235px;
}
.observatory-task {
  position: absolute;
  top: 110px;
  left: 24px;
  width: 225px;
  background: #0b1824d9;
  border: 1px solid #81929b44;
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
}
.observatory-task label {
  font-size: 11px;
}
.observatory-task select {
  width: 100%;
  font-size: 13px;
}
.observatory-task button {
  margin-top: 8px;
  width: 100%;
  font-size: 13px;
}
.observatory-task p {
  font-size: 13px;
  color: #c9d4d9;
}
.observatory-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(transparent, #07121cf5);
  flex-wrap: wrap;
}
.observatory-controls label {
  font-size: 12px;
  max-width: 145px;
}
.observatory-controls input {
  display: block;
  width: 100%;
  accent-color: #e6c583;
  min-height: 28px;
}
.observatory-controls a {
  color: #c6d2d9;
}
.observatory-controls button[data-observe="capture"] {
  background: #ddc18b;
  color: #182930;
  font-weight: 700;
}
.observatory-status {
  position: absolute;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 75vw);
  text-align: center;
  background: #091823df;
  border: 1px solid #6e7f8b66;
  border-radius: 14px;
  padding: 10px 20px;
  pointer-events: none;
}
.observatory-image {
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(48vh, 48vw);
  text-align: center;
}
.observatory-image img {
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}
.observatory-image span {
  display: block;
  font-size: 11px;
  color: #c5d0d8;
  background: #07121cdf;
  padding: 8px;
  border-radius: 8px;
}
.observatory-drawer {
  position: absolute;
  inset: 18px;
  overflow: auto;
  background: #0b1925fa;
  border: 1px solid #718692;
  border-radius: 20px;
  padding: 24px;
  z-index: 5;
}
.observatory-drawer header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.sky-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.sky-cards article {
  border: 1px solid #63788755;
  border-radius: 14px;
  padding: 16px;
  color: #bac7ce;
}
.sky-cards article.found {
  border-color: #c6a66a;
  color: #fff;
}
.sky-cards h3 {
  font:
    22px Georgia,
    serif;
}
.sky-cards p {
  font-size: 13px;
}
.sky-cards img {
  width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}
.sky-missions {
  margin: 12px 0 24px;
  font-size: 13px;
}
.observatory-film {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  background: linear-gradient(#0007, transparent 30%, transparent 60%, #000c);
  padding: 8vh;
}
.observatory-film h1 {
  font:
    clamp(28px, 5vw, 64px) Georgia,
    serif;
  color: #f8ecd4;
}
.observatory-film span {
  letter-spacing: 0.25em;
  font-size: 12px;
}
.observatory-film button {
  position: absolute;
  right: 24px;
  top: 24px;
}
.observatory-film p {
  max-width: 540px;
}
@media (max-width: 900px) {
  .observatory-bar {
    padding: 8px 12px;
    gap: 7px;
  }
  .observatory-bar strong {
    font-size: 19px;
  }
  .observatory-session select {
    max-width: 180px;
    font-size: 12px;
  }
  .observatory-bar button {
    font-size: 12px;
    padding: 7px;
  }
  .observatory-task {
    left: 10px;
    top: 80px;
    width: 180px;
    padding: 12px;
    max-height: calc(100% - 185px);
    overflow: auto;
  }
  .observatory-task h2 {
    font-size: 20px;
  }
  .observatory-task button {
    min-height: 40px;
    padding: 6px;
  }
  .observatory-controls {
    gap: 10px;
    padding: 10px;
  }
  .observatory-controls small {
    display: none;
  }
  .observatory-controls label {
    width: 100px;
  }
  .observatory-status {
    top: 80px;
    bottom: auto;
    right: 12px;
    left: auto;
    transform: none;
    font-size: 12px;
    width: 26vw;
    max-height: calc(100% - 180px);
    overflow: auto;
  }
  .observatory-drawer {
    inset: 8px;
    padding: 16px;
  }
}
@media (max-width: 550px) and (orientation: portrait) {
  .observatory-bar {
    flex-wrap: wrap;
  }
  .observatory-task {
    top: 140px;
    max-height: 220px;
    width: 155px;
  }
  .observatory-controls {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .observatory-controls button {
    font-size: 12px;
  }
  .observatory-status {
    top: auto;
    right: auto;
    transform: translateX(-50%);
    bottom: 132px;
    left: 50%;
    max-width: 88vw;
    width: 88vw;
  }
  .observatory-image {
    top: 62%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .observatory-experience * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.observing-sky #world {
  visibility: hidden;
}

.observatory-date {
  display: block;
  margin-top: 3px;
}

body.observatory-open.needs-landscape #landscape-gate {
  z-index: 1100;
}
body.observatory-open.needs-landscape .observatory-experience {
  visibility: hidden;
}
/* Photographic depth exploration: keep the sky primary and controls compact. */
.universe-experience {
  background: #02050c;
  color: #f6ecd6;
  overflow: hidden;
}
.universe-backdrop {
  position: absolute;
  inset: -5%;
  background: none center 49% / cover no-repeat;
  filter: brightness(0.72) saturate(0.8);
  transition:
    transform 0.25s ease,
    filter 0.6s;
  pointer-events: none;
}
.universe-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 15%,
    #02071099 78%,
    #020710 100%
  );
  pointer-events: none;
}
.universe-bar {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 3;
}
.universe-bar > div {
  margin-right: auto;
}
.universe-bar h1 {
  font-size: 26px;
  margin: 4px 0;
}
.universe-bar small {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #c8c4ba;
}
.universe-experience button {
  color: #f2e6ce;
  background: #10212ce8;
  border: 1px solid #b9c8d050;
  border-radius: 14px;
  cursor: pointer;
}
.universe-experience button:hover,
.universe-experience button:focus-visible {
  background: #294657;
  outline: 2px solid #e9ce8b;
  outline-offset: 3px;
}
.universe-heading {
  position: absolute;
  top: 105px;
  left: 28px;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 8px #000;
}
.universe-level {
  font-size: 21px;
  font-family: Georgia, serif;
}
.universe-heading p {
  font-size: 12px;
  margin: 5px 0;
}
.universe-stage {
  position: absolute;
  inset: 155px 22px 162px;
  touch-action: none;
  --pan-x: 0px;
  --pan-y: 0px;
}
.universe-experience .celestial-object {
  position: absolute;
  left: calc(var(--x) + var(--pan-x));
  top: calc(var(--y) + var(--pan-y));
  transform: translate(-50%, -50%);
  width: clamp(70px, 12vw, 180px);
  height: clamp(64px, 13vh, 150px);
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.celestial-object img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: radial-gradient(ellipse, #000 25%, #000c 45%, transparent 72%);
  filter: contrast(1.12);
  pointer-events: none;
}
.celestial-object.planet img {
  object-fit: contain;
  mask-image: radial-gradient(ellipse, #000 32%, transparent 72%);
}
.universe-experience .celestial-object:hover,
.universe-experience .celestial-object:focus-visible {
  background: transparent;
  border-radius: 50%;
  outline: 1px solid #eacb8a;
}
.celestial-name {
  position: absolute;
  top: 100%;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #fff2d0;
  text-shadow:
    0 2px 4px #000,
    0 0 12px #000;
  pointer-events: none;
}
.collected .celestial-name {
  color: #a4e0cd;
}
.celestial-light,
.image-unavailable:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff8e5;
  box-shadow:
    0 0 8px 2px #fff,
    0 0 25px 6px #95bded99,
    0 0 55px 16px #bad1e233;
}
.star .celestial-light:before,
.star .celestial-light:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translate(-50%, -50%);
}
.star .celestial-light:after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.universe-controls {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.universe-depths {
  display: flex;
  gap: 6px;
}
.universe-depths button {
  padding: 8px 14px;
  font-size: 12px;
}
.universe-depths button[aria-pressed="true"] {
  background: #dcc18b;
  color: #14242c;
  border-color: #f3d699;
}
.universe-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-shadow: 0 1px 4px #000;
}
.universe-zoom input {
  width: min(36vw, 420px);
  accent-color: #dfc18a;
}
.universe-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.universe-caption button {
  font-size: 10px;
  padding: 5px 9px;
}
.universe-credit {
  font-size: 10px;
  color: #c4cbd1;
  text-align: center;
}
.universe-credit a {
  color: #ebdab4;
}
.universe-discovery {
  position: absolute;
  left: 24px;
  bottom: 165px;
  width: min(340px, 40vw);
  padding: 15px 18px;
  background: #0a1b29f2;
  border: 1px solid #dec68a88;
  border-radius: 16px;
  z-index: 4;
}
.universe-discovery p {
  font-size: 13px;
  margin: 0 22px 6px 0;
}
.universe-discovery small {
  font-size: 9px;
  color: #acbdc8;
}
.universe-discovery button {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 2px 8px;
}
.universe-atlas {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #06121bf9;
  padding: 24px;
  overflow: auto;
}
.universe-atlas header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.universe-atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.universe-atlas article {
  border: 1px solid #7795a444;
  border-radius: 15px;
  padding: 15px;
}
.universe-atlas img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.universe-atlas small {
  font-size: 10px;
  display: block;
}
.universe-atlas p {
  font-size: 12px;
}
.universe-atlas h3 {
  font-size: 18px;
}
.skyglow .universe-backdrop {
  filter: brightness(0.42) saturate(0.2);
}
.skyglow .universe-vignette {
  background: #87786988;
}
.skyglow .deep-sky img {
  opacity: 0.35;
}
@media (max-height: 500px), (max-width: 900px) {
  .universe-bar {
    top: 8px;
    left: 12px;
    right: 12px;
    gap: 6px;
  }
  .universe-bar h1 {
    font-size: 18px;
  }
  .universe-bar button {
    font-size: 11px;
    padding: 9px;
  }
  .universe-heading {
    top: 66px;
    left: 14px;
  }
  .universe-level {
    font-size: 16px;
  }
  .universe-heading p {
    font-size: 10px;
  }
  .universe-stage {
    inset: 102px 18px 115px;
  }
  .universe-experience .celestial-object {
    width: 76px;
    height: 46px;
  }
  .celestial-name {
    font-size: 10px;
  }
  .universe-controls {
    bottom: 7px;
    left: 10px;
    right: 10px;
    gap: 4px;
  }
  .universe-depths button {
    font-size: 10px;
    padding: 6px 10px;
  }
  .universe-caption {
    font-size: 9px;
    gap: 8px;
  }
  .universe-credit {
    font-size: 8px;
  }
  .universe-zoom {
    font-size: 9px;
  }
  .universe-discovery {
    bottom: 118px;
    left: 12px;
    width: 230px;
    padding: 12px;
  }
  .universe-discovery p {
    font-size: 11px;
  }
  .universe-discovery small {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .universe-backdrop {
    transition: none;
  }
}
.universe-experience {
  overflow: clip;
}
.universe-experience .celestial-object.planet img {
  mask-image: none;
  mix-blend-mode: screen;
}
.universe-stage .celestial-object {
  animation: celestial-arrive 0.4s ease both;
}
@keyframes celestial-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .universe-stage .celestial-object {
    animation: none;
  }
}
@media (max-height: 500px), (max-width: 900px) {
  .universe-stage {
    bottom: 150px;
  }
  .universe-controls {
    gap: 2px;
  }
  .universe-depths button {
    min-height: 36px;
    padding: 5px 9px;
  }
  .universe-discovery {
    bottom: 150px;
  }
}
.cluster .celestial-light {
  width: 3px;
  height: 3px;
  box-shadow:
    -12px -4px 3px #eaf2ff,
    -6px 8px 3px #fff,
    8px -6px 3px #eef,
    13px 7px 3px #fff,
    19px -3px 3px #ddf,
    -17px 5px 3px #fff,
    0 0 18px 7px #b4c7df55;
}
[data-object="albireo"] .celestial-light {
  background: #f9d997;
  box-shadow:
    12px 6px 3px 1px #9dc6ff,
    0 0 10px 3px #edbd7066;
}

.universe-rendered-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.universe-experience .rendered-object {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  min-width: 38px;
  min-height: 38px;
}
.universe-experience .rendered-object:hover,
.universe-experience .rendered-object:focus-visible {
  background: #b8d8ed0a;
  outline: 1px solid #efd396;
  border-color: #efd39666;
}
.rendered-object span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #e9e4d8;
  white-space: nowrap;
  text-shadow:
    0 1px 4px #000,
    0 0 8px #000;
  pointer-events: none;
}
.rendered-object.collected span {
  color: #ace2ce;
}
.universe-atlas canvas {
  width: 100%;
  height: 130px;
  object-fit: contain;
}
@media (max-height: 500px), (max-width: 900px) {
  .rendered-object span {
    font-size: 9px;
  }
}
.rendered-object span {opacity:0;transition:opacity .15s;}
.rendered-object[data-near="true"] span,.rendered-object:hover span,.rendered-object:focus-visible span {opacity:1;}

.universe-experience.universe-finishing { animation: universe-return 1.1s ease-in forwards; pointer-events: none; }
@keyframes universe-return { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .universe-experience.universe-finishing { animation: none; opacity: 0; } }

.universe-journey { position:absolute; bottom:32px; left:50%; transform:translateX(-50%); display:grid; gap:7px; text-align:center; padding:15px 28px; border:1px solid #d9bb7580; border-radius:18px; background:#071421ed; max-width:90%; min-width:250px; pointer-events:none; }
.universe-journey[hidden] { display:none; }
.journey-path { color:#b5c7d9; font-size:12px; }
.journey-action { color:#ffe3a2; font-size:19px; }
.universe-journey small { color:#c0cbd3; font-size:11px; }
.universe-guided .universe-controls, .universe-guided [data-u="atlas"] { display:none; }
.universe-guided .universe-stage { bottom:160px; }
.universe-guided .journey-target { outline:2px solid #f8d782; outline-offset:10px; box-shadow:0 0 32px #f8d78266; }
.universe-guided .journey-target span { opacity:1; color:#ffe3a2; font-weight:700; }
@media(max-height:500px) {
 .universe-guided .universe-stage { top:110px; bottom:88px; }
 .universe-journey { bottom:9px; padding:7px 18px; gap:2px; }
 .journey-action { font-size:15px; }
}

.universe-finale > :not(.universe-closing-title) { opacity: 0 !important; pointer-events: none; transition: opacity .6s ease; }
.universe-finale > .universe-rendered-sky { opacity: .18 !important; }
.universe-closing-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px; text-align: center; color: #f4e7c8; animation: observatory-closing-title 4s ease both; }
.universe-closing-title h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(28px, 5vw, 64px); line-height: 1.15; max-width: 900px; margin: 0; text-wrap: balance; }
.universe-closing-title p { font-size: clamp(15px, 2vw, 24px); letter-spacing: .14em; margin: 0; color: #c6d5df; }
@keyframes observatory-closing-title { 0%, 100% { opacity: 0; } 18%, 77% { opacity: 1; } }
.universe-finale-reduced .universe-closing-title { animation: none; }
@media(prefers-reduced-motion: reduce) { .universe-closing-title { animation: none; } .universe-finale > :not(.universe-closing-title) { transition: none; } }

/* Responsive audit: keep panel navigation fixed and content scrollable. */
.panel { min-height: 0; max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))); }
.panel-head { flex-shrink: 0; }
.panel-head > div:first-child { min-width: 0; }
.panel-head h2 { overflow-wrap: anywhere; }
.panel-body { min-height: 0; overflow-x: hidden; scrollbar-gutter: stable; }
.sheet-controls { flex-shrink: 0; }
.tabs button, .sheet-toggle { min-width: 44px; min-height: 44px; }
.row > label { min-width: 0; }
.row input[type=range] { max-width: 45%; min-width: 100px; }
.map-destination { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; }
.map-destination label { font-size: 13px; font-weight: 600; }
.map-destination select { width: 100%; min-width: 0; min-height: 44px; }
.panel.sheet-expanded .map-wrap { width: 100%; height: clamp(280px, 48dvh, 520px); max-height: none; aspect-ratio: auto; }
.panel.sheet-compact .map-wrap { width: 100%; }
.hero { padding-top: max(16px, env(safe-area-inset-top)); padding-left: max(4vw, env(safe-area-inset-left)); padding-right: max(4vw, env(safe-area-inset-right)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.hero-top { gap: 12px; }
.hero-top .tools { flex-shrink: 0; }
.hero-mode { min-width: 0; }
.hero-mode-actions button { max-width: 100%; overflow-wrap: anywhere; }
.universe-bar { top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); }
.universe-bar > div { min-width: 0; }
.universe-bar button { flex-shrink: 0; }
.universe-experience button:not(.rendered-object) { min-height: 44px; min-width: 44px; }
.universe-heading { right: max(14px, env(safe-area-inset-right)); }
.universe-depths { max-width: 100%; overflow-x: auto; flex-shrink: 0; padding: 3px; }
.universe-depths button { flex-shrink: 0; }
.universe-controls { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); }
.universe-atlas { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.universe-atlas header { position: sticky; top: -16px; background: #06121bf5; z-index: 2; padding: 10px 0; }
.universe-atlas header h2 { min-width: 0; font-size: clamp(19px, 3vw, 28px); }
.universe-atlas header button { flex-shrink: 0; }
.universe-atlas-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.universe-discovery { max-height: 35dvh; overflow: auto; padding-right: 54px; }
.universe-discovery p { margin-right: 0; }
.universe-journey { bottom: max(12px, env(safe-area-inset-bottom)); }
@media (pointer: coarse), (max-width: 900px), (max-height: 540px) {
  .panel button:not(.map-pin), .og-tools button, .mode button, .field-chip-toggle, .goal-more { min-height: 44px; min-width: 44px; }
  .panel input:not([type=checkbox]):not([type=radio]), .panel select { min-height: 44px; }
  .panel input[type=checkbox] { width: 24px; height: 24px; flex-shrink: 0; }
  .panel .row { min-height: 48px; }
  .panel.sheet-expanded { max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom))); }
  .panel.sheet .panel-head { padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); }
  .panel.sheet .panel-body { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .panel.sheet .tabs { gap: 10px; }
  .panel.sheet .tabs button { padding: 8px 7px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .hero { padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .hero-main { padding: 8px 0; margin: 0; max-width: none; }
  .hero-main > .eyebrow, .hero h2, .hero-footer { display: none; }
  .hero h1 { font-size: 48px; margin: 2px 0 8px; }
  .hero .hero-intro { margin: 0 0 10px; font-size: 12px; }
  .hero-modes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-mode { padding: 12px; }
  .hero-mode h3 { font-size: 20px; margin-bottom: 5px; }
  .hero .hero-mode p { font-size: 12px; line-height: 1.35; margin-bottom: 9px; }
  .hero-mode-actions { gap: 6px; }
  .hero-mode-actions button { min-height: 44px; font-size: 12px; padding: 9px 10px; gap: 6px; }
  .hero-mode-actions .ghost { padding: 8px; }
  .universe-stage { top: 108px; bottom: 166px; }
  .universe-caption > span, .universe-credit { display: none; }
  .universe-controls { gap: 3px; }
  .universe-discovery { bottom: 166px; max-height: calc(100dvh - 240px); }
  .universe-guided .universe-stage { bottom: 95px; }
}
@media (max-width: 540px) {
  .hero-top { align-items: flex-start; }
  .hero-top .brand span { display: none; }
  .hero-top .tools { gap: 5px; }
  .hero-top .tools button { padding: 8px; font-size: 11px; }
  .map-destination { grid-template-columns: 1fr; gap: 4px; }
  .panel-head h2 { font-size: 22px; }
  .panel-head .eyebrow { font-size: 8px; }
  .sheet-controls { gap: 3px; }
  .grid, .grid.two, .panel.sheet-compact .grid { grid-template-columns: minmax(0,1fr); }
  .row { gap: 10px; flex-wrap: wrap; }
  .row > label { flex: 1 1 55%; }
  .row select { max-width: 100%; }
  .universe-bar { flex-wrap: wrap; }
  .universe-bar > div { flex-basis: 100%; }
  .universe-heading { top: 120px; }
  .universe-stage { top: 190px; bottom: 180px; }
  .universe-guided .universe-stage { top: 190px; bottom: 140px; }
  .universe-caption { flex-wrap: wrap; justify-content: center; }
  .universe-caption > span { display: none; }
  .universe-depths { justify-content: flex-start; width: 100%; }
  .universe-zoom { gap: 5px; width: 100%; justify-content: space-between; }
  .universe-zoom input { flex: 1; min-width: 60px; }
  .universe-discovery { left: 12px; right: 12px; width: auto; bottom: 180px; }
  .universe-atlas header { flex-wrap: wrap; gap: 4px; }
}

.tabs button { flex-shrink: 0; }
.panel button:not(.map-pin) { min-width: 44px; min-height: 44px; }
@media (pointer: coarse), (max-width: 900px), (max-height: 540px) {
  .goal button, .context { min-height: 44px; min-width: 44px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .photo-review .captured-photo img { max-height: 30dvh; }
  .photo-review .captured-photo figcaption { padding-top: 8px; }
  .photo-review .captured-photo strong { font-size: 20px; }
}

@media (orientation: landscape) and (max-height: 550px) {
  .og-top { top: max(8px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
  .og-brand { padding: 8px 10px; max-width: 38%; gap: 3px; }
  .og-brand small { display: none; }
  .og-brand strong { font-size: 17px; }
  .og-brand span { font-size: 10px; }
  .og-tools { flex-wrap: nowrap; gap: 5px; }
  .og-tools button { min-height: 44px; font-size: 11px; padding: 8px; }
  .og-compass, .og-expert .og-compass { top: 80px; left: max(10px, env(safe-area-inset-left)); gap: 7px; padding: 7px; max-width: 190px; }
  .og-compass .og-dial { flex-shrink: 0; }
  .og-compass .quiet { min-height: 44px; }
  .og-compass strong { font-size: 16px; }
  .og-compass small { font-size: 9px; }
  .og-race { top: 80px; right: max(10px, env(safe-area-inset-right)); padding: 8px; max-width: 120px; }
  .og-punch { bottom: max(10px, env(safe-area-inset-bottom)); max-width: calc(100% - 300px); min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .og-hint { display: none; }
  .og-lesson { top: 80px; bottom: auto; left: 210px; width: calc(100% - 350px); max-width: 380px; max-height: calc(100dvh - 150px); overflow-y: auto; padding: 10px; }
  .og-lesson h3 { font-size: 17px; margin: 5px 0; }
  .og-lesson p { font-size: 12px; }
  .og-lesson button { min-height: 44px; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .universe-experience:not(.universe-guided) .universe-stage { top: 90px; bottom: 128px; }
  .universe-experience:not(.universe-guided) .universe-heading p { display: none; }
  .universe-controls .universe-credit { display: none; }
}

.rendered-object span {
  width: max-content;
  max-width: min(180px, 30vw);
  white-space: normal;
  text-align: center;
}

@media (max-width: 540px) {
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .stat strong { white-space: nowrap; }
}

/* Website clone: the neutral title and compact HUD must fit small phones. */
@media (max-width: 540px) {
  .hero h1 { font-size: clamp(42px, 12vw, 64px); }
  .field-chip .place { flex-wrap: wrap; }
  .field-chip .place-copy { flex: 1 1 100%; overflow-wrap: anywhere; }
  .field-chip .field-chip-toggle { margin-left: auto; }
}
