@import url("./city-guide/published-photo.css");
html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
#world {
  --hud-ink: #263e34;
  --pine: #284b40;
  --shell: #fff6d9;
  --rim: #947f56;
  --gutter: clamp(14px, 2.2vw, 34px);
  --world-left: max(var(--gutter), env(safe-area-inset-left));
  --world-right: max(var(--gutter), env(safe-area-inset-right));
  --world-top: max(var(--gutter), env(safe-area-inset-top));
  --dock-bottom: max(clamp(16px, 2.8vh, 34px), env(safe-area-inset-bottom));
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #b9dbda;
  color: var(--hud-ink);
}
#atlas-root {
  position: absolute;
  inset: 0;
}
#world-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
#world-hud button,
#world-hud .world-guide-link,
#world-hud nav,
#world-hud [role="group"],
#world-hud .layer-palette,
#map-context {
  pointer-events: auto;
}
#world-hud button {
  line-height: 1.15;
}
#world-hud button:focus-visible,
#world-hud .world-guide-link:focus-visible,
.game-panel button:focus-visible,
dialog button:focus-visible {
  outline: 3px solid #c95d36;
  outline-offset: 3px;
}
#world:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 0 90px #365b4a17,
    inset 0 0 0 1px #456b6045;
}
.item-art {
  image-rendering: pixelated;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 #252c2c26);
}
.hud-brand-stack {
  position: absolute;
  left: var(--world-left);
  top: var(--world-top);
  display: grid;
  justify-items: start;
  gap: 11px;
}
.hud-quick-actions {
  display: flex;
  gap: 8px;
}
.world-sign {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 12px 13px;
  min-width: 212px;
  background: #284a40;
  color: #fff2d1;
  border: 2px solid #394c3b;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 1px #bfa66a,
    inset 0 0 0 3px #416252,
    0 3px 0 #917c52,
    0 5px 11px #133d3526;
  text-align: left;
}
.world-sign:before,
.world-sign:after {
  content: "";
  width: 3px;
  height: 3px;
  background: #d8c287;
  position: absolute;
  top: 5px;
}
.world-sign:before {
  left: 5px;
}
.world-sign:after {
  right: 5px;
}
.sign-medallion {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
}
.sign-medallion img {
  width: 45px;
  height: 45px;
}
.sign-copy {
  display: grid;
  gap: 2px;
}
.sign-copy small,
.season-control small,
.context-data small,
.panel-bar,
.scale-hud,
.trail-count,
.photo-caption,
.menu-meta {
  font: 500 10px/1.25 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sign-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ebcc87;
}
.sign-copy small i {
  width: 3px;
  height: 3px;
  background: #b2915c;
}
.sign-copy small [lang] {
  font-size: 10px;
  letter-spacing: 1px;
}
.sign-copy strong {
  font-size: 29px;
  letter-spacing: -1.6px;
  line-height: 1;
}
.sign-arrow {
  align-self: flex-end;
  margin-left: 3px;
  margin-bottom: 2px;
  color: #d8ca9c;
}
.world-sign:hover,
.inventory button:hover {
  filter: brightness(1.055);
}
.world-search,
.world-guide-link,
.season-control,
.world-menu,
.control-block,
.layer-palette,
.fox-bubble,
.scale-hud,
.world-context-card {
  background: #fcf6dd;
  border: 1px solid #8b967b;
  box-shadow:
    inset 0 0 0 2px #fffae9,
    0 2px 0 #89947d,
    0 4px 8px #1d433621;
}
.world-search,
.world-guide-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 5px;
  padding: 8px 10px;
  font-weight: 650;
  font-size: 13px;
  color: #344f40;
}
.world-guide-link {
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.world-guide-link .icon {
  transform: rotate(180deg);
}
.world-search kbd {
  font: 10px var(--mono);
  border: 1px solid #bfc3a5;
  border-radius: 3px;
  padding: 1px 4px;
  color: #788570;
  margin-left: 18px;
  background: #f6f2db;
}
.sky-controls {
  position: absolute;
  right: var(--world-right);
  top: var(--world-top);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.season-control {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 9px 4px 4px;
  border-radius: 6px;
  color: #34533e;
}
.season-control img {
  width: 48px;
  height: 39px;
  border-radius: 3px;
  object-fit: cover;
  object-position: 40% 49%;
  border: 1px solid #b5aa7e;
  image-rendering: pixelated;
}
.season-control span {
  display: grid;
  gap: 2px;
  text-align: left;
  min-width: 42px;
}
.season-control small {
  font-size: 8px;
  color: #746e51;
}
.season-control strong {
  font-size: 16px;
  letter-spacing: -0.45px;
}
.season-control > .icon {
  margin-left: 3px;
}
.world-menu {
  width: 40px;
  height: 42px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.world-menu span {
  display: block;
  width: 16px;
  height: 2px;
  background: #46644d;
}
.world-tools {
  position: absolute;
  right: var(--world-right);
  top: 46%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}
.control-block {
  display: grid;
  border-radius: 5px;
  overflow: hidden;
}
.control-block button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 39px;
}
.control-block button + button {
  border-top: 1px solid #c9c7ac;
}
.control-block button:hover,
.world-search:hover,
.world-guide-link:hover,
.world-menu:hover,
.season-control:hover {
  background-color: #fffce9;
}
.layer-palette {
  position: absolute;
  z-index: 1;
  right: calc(var(--gutter) + 52px);
  --layer-top: clamp(80px, calc(46% - 80px), 50%);
  top: var(--layer-top);
  width: 215px;
  border-radius: 6px;
  padding: 10px 13px;
}
.palette-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.palette-heading button {
  padding: 3px;
  display: grid;
  place-items: center;
}
.layer-palette label {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.layer-palette input {
  accent-color: #497554;
}
.reset-atlas-layers {
  display: block;
  min-height: 44px;
  text-align: start;
  width: 100%;
  border-top: 1px solid #c9c7ac;
  margin-top: 6px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.layer-palette small {
  display: block;
  font-size: 11px;
  color: #687560;
  line-height: 1.35;
  margin: 0 0 4px;
}
.inventory {
  position: absolute;
  display: flex;
  align-items: stretch;
  gap: 3px;
  bottom: var(--dock-bottom);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border: 2px solid #354736;
  background: #344e40;
  border-radius: 9px;
  box-shadow:
    inset 0 0 0 1px #d0b67c,
    inset 0 0 0 3px #53604b,
    0 3px 0 #9b8354,
    0 6px 12px #193f3338;
}
.inventory:before,
.inventory:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #d7bb7c;
  top: 50%;
}
.inventory:before {
  left: 2px;
}
.inventory:after {
  right: 2px;
}
.inventory button {
  position: relative;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 7px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #f8efd5;
}
.inventory button[aria-pressed="true"] {
  color: #fff1c5;
  background: #6b7250;
  border-color: #d1ba7a;
  box-shadow: inset 0 0 0 1px #8a9067;
}
.inventory button[aria-pressed="true"]:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #f2c16e;
  transform: rotate(45deg);
  bottom: -7px;
  border: 1px solid #8c7549;
}
.slot-art {
  display: grid;
  place-items: center;
  height: 33px;
}
.slot-art img {
  height: 34px;
  width: 34px;
  transition: transform 0.18s;
}
.inventory button:hover .slot-art img {
  transform: translateY(-2px) rotate(-4deg);
}
.slot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15px;
}
.scale-hud {
  position: absolute;
  bottom: var(--dock-bottom);
  left: var(--gutter);
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.45px;
  border-radius: 3px;
  color: #465e50;
  background: #eef3dbdf;
  box-shadow: 0 1px 0 #8498806b;
}
.scale-meter {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
}
.scale-meter i {
  width: 3px;
  height: 4px;
  background: #a4ad92;
}
.scale-meter i:nth-child(2) {
  height: 6px;
}
.scale-meter i:nth-child(3) {
  height: 8px;
}
.scale-meter i:nth-child(4) {
  height: 10px;
}
.scale-meter i.filled {
  background: #416f56;
}
.scale-separator {
  opacity: 0.45;
}
.field-companion {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--dock-bottom) + 44px);
  display: flex;
  align-items: center;
  gap: 2px;
}
.field-companion > button:first-child {
  padding: 0;
  background: none;
}
.field-companion .item-art {
  transform-origin: 50% 90%;
}
.fox-bubble {
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #415b44;
  max-width: 168px;
  text-align: left;
  font-weight: 600;
}
.field-companion:hover img {
  transform: rotate(-5deg);
}
.world-conditions {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.world-conditions i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7px;
  height: 4px;
  opacity: 0;
  border-radius: 90% 5% 70% 10%;
  background: #efa3ac;
  box-shadow: 1px 1px #ffe6d5;
  animation: wind-fall var(--span) linear var(--delay) infinite;
}
#world[data-season="summer"] .world-conditions i {
  width: 3px;
  height: 3px;
  background: #fff4b0;
  border-radius: 50%;
  box-shadow: 0 0 5px #fff0a7;
}
#world[data-season="autumn"] .world-conditions i {
  height: 6px;
  background: #d58044;
}
#world[data-season="winter"] .world-conditions i {
  width: 4px;
  height: 4px;
  background: #fffefa;
  border-radius: 50%;
  box-shadow: 0 0 2px #e0f4fa;
}
@keyframes wind-fall {
  0%,
  100% {
    opacity: 0;
  }
  15% {
    opacity: 0.62;
  }
  75% {
    opacity: 0.62;
  }
  99% {
    transform: translate(68px, 65px) rotate(calc(var(--spin) + 175deg));
    opacity: 0;
  }
}
#map-context {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--gutter) + 132px);
  width: 244px;
}
.world-context-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  animation: hud-in 0.22s ease-out;
}
.world-context-card .context-cover {
  width: 100%;
  height: 75px;
  object-fit: cover;
  display: block;
}
.marker-postcard {
  position: relative;
  margin: 0;
}
.marker-postcard figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 95%;
  padding: 2px 4px;
  background: #233d32e8;
  color: #fff6d9;
  font: 9px/1.25 var(--body, sans-serif);
}
.marker-postcard a {
  color: inherit;
}
@media (max-width: 650px) {
  .marker-postcard {
    display: none;
  }
}
.context-data {
  padding: 9px 12px;
}
.context-data h2 {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 2px 0 3px;
}
.context-data small {
  color: #806c46;
  font-size: 9px;
}
.context-data p {
  font-size: 12px;
  margin: 4px 0;
  color: #556653;
  line-height: 1.4;
}
.context-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #295239;
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
  padding: 3px 0;
}
.context-x {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px 5px;
  color: #2c4837;
  background: #fff6d8df;
  border: 1px solid #89927b;
  border-radius: 3px;
}
.game-panel,
dialog#overlay {
  position: absolute;
  z-index: 5;
  top: calc(var(--gutter) + 66px);
  right: calc(var(--world-right) + 54px);
  bottom: calc(var(--dock-bottom) + 83px);
  width: min(458px, calc(100% - 62px - var(--world-left)));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--hud-ink);
  border: 2px solid #697e64;
  border-radius: 8px;
  background: #f9f6e7;
  box-shadow:
    inset 0 0 0 1px #fbf1cd,
    0 3px 0 #907b53,
    0 9px 26px #173c3538;
  overflow: hidden;
}
.game-panel {
  display: flex;
  flex-direction: column;
}
.game-panel[hidden],
#map-context[hidden],
.layer-palette[hidden] {
  display: none !important;
}
dialog#overlay {
  z-index: 6;
  overflow: auto;
}
dialog#overlay[open],
.game-panel:not([hidden]) {
  animation: hud-in 0.2s ease-out;
}
dialog#overlay::backdrop {
  background: none;
  backdrop-filter: none;
}
@keyframes hud-in {
  from {
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#world[data-detail] .game-panel {
  visibility: hidden;
  pointer-events: none;
}
.panel-bar,
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #345544;
  color: #fff1ce;
  min-height: 39px;
  padding: 6px 12px;
  border-bottom: 2px solid #bbad7b;
  flex: none;
  letter-spacing: 0.8px;
}
.panel-bar > span,
.modal-top .mini {
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-bar .item-art {
  width: 24px;
  height: 24px;
}
.panel-x,
.modal-top .sq {
  width: 26px;
  height: 25px;
  color: #fff0cc;
  background: #456451;
  border: 1px solid #859573;
  border-radius: 3px;
  font-size: 22px;
  line-height: 1;
}
.modal-top .sq {
  display: grid;
  place-items: center;
}
#menu-content {
  overflow: auto;
  padding: 16px;
  overscroll-behavior: contain;
  min-height: 0;
}
.game-panel h1,
.game-panel .view-lead h1 {
  font-size: 29px;
  letter-spacing: -1px;
}
.menu-intro h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -1.2px;
  line-height: 1.1;
}
.menu-intro p {
  font-size: 14px;
  margin: 6px 0 13px;
  color: #65715f;
}
.menu-meta {
  font-size: 9px;
  color: #826846;
}
.atlas-resume-region {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 10px;
  margin: 0 0 12px;
  background: #e8ebd8;
  border: 1px solid #a9b298;
  border-radius: 4px;
  color: #2c4837;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.atlas-resume-region span {
  flex: 1;
}
.atlas-resume-region:hover {
  background: #f0efd9;
}
.game-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.game-region {
  padding: 0;
  text-align: left;
  border: 1px solid #acb39b;
  background: #fff9e4;
  border-radius: 4px;
  overflow: hidden;
}
.game-region img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}
.game-region span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 14px;
}
.game-region small {
  font-size: 10px;
  color: #728069;
  font-weight: 400;
}
.game-regions + .menu-intro {
  margin-top: 18px;
}
.game-panel .directory-page {
  display: block;
}
.trail-entry {
  display: block;
  border: 1px solid #b7baa0;
  border-radius: 5px;
  margin: 12px 0;
  overflow: hidden;
  background: #fffbe9;
}
.trail-entry > img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}
.trail-info {
  padding: 10px 12px;
}
.trail-info h3 {
  margin: 2px 0;
  font-size: 20px;
  line-height: 1.2;
}
.trail-info p,
.help-copy {
  font-size: 14px;
  color: #586454;
  margin: 6px 0;
}
.trail-info .primary {
  width: 100%;
  margin-top: 9px;
}
.trail-count {
  color: #856b46;
  font-size: 9px;
}
.trail-stops {
  padding: 0;
  margin: 10px 0;
  list-style: none;
}
.trail-stops button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  text-align: left;
  padding: 8px 0;
  width: 100%;
  border-top: 1px solid #d0d1b8;
}
.trail-stops b {
  display: grid;
  place-items: center;
  background: #efe1b7;
  min-width: 20px;
  height: 20px;
  border: 1px solid #bead7d;
  border-radius: 4px;
  font-size: 11px;
}
.trail-stops .done {
  background: #d9e8c6;
  color: #376046;
}
.option-row {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  text-align: left;
}
.option-row span {
  flex: 1;
}
.option-row small {
  color: #6b7c63;
}
#world .notice {
  z-index: 8;
  position: absolute;
  bottom: calc(var(--dock-bottom) + 80px);
  padding: 7px 11px;
  max-width: 85vw;
  text-align: center;
}
@media (min-width: 1250px) {
  .inventory button {
    min-width: 79px;
  }
  .world-sign {
    min-width: 228px;
  }
}
@media (max-width: 850px) {
  .fox-bubble {
    display: none;
  }
  .world-tools {
    top: 44%;
  }
  #map-context {
    width: 195px;
  }
  .world-context-card .context-cover {
    height: 61px;
  }
}
@media (max-width: 650px) {
  #world {
    --gutter: 10px;
    --dock-bottom: max(11px, env(safe-area-inset-bottom));
    --atlas-panel-space: calc(100% - var(--world-top) - var(--dock-bottom) - 177px);
  }
  .world-sign {
    gap: 5px;
    min-width: 0;
    padding: 6px 8px;
  }
  .sign-medallion,
  .sign-medallion img {
    width: 31px;
    height: 32px;
  }
  .sign-copy strong {
    font-size: 21px;
    letter-spacing: -0.9px;
  }
  .sign-copy small {
    font-size: 8px;
  }
  .sign-arrow {
    display: none;
  }
  .hud-brand-stack {
    gap: 8px;
  }
  .world-search,
  .world-guide-link {
    min-height: 44px;
    font-size: 13px;
    padding: 6px 9px;
    gap: 5px;
  }
  .world-search kbd {
    display: none;
  }
  .sky-controls {
    gap: 6px;
  }
  .season-control {
    min-height: 44px;
    padding: 3px 6px 3px 3px;
    gap: 4px;
  }
  .season-control img {
    width: 32px;
    height: 31px;
  }
  .season-control strong {
    font-size: 13px;
  }
  .season-control small {
    font-size: 7px;
  }
  .season-control span {
    min-width: 47px;
  }
  .season-control > .icon {
    width: 10px;
    margin: 0;
  }
  .world-menu {
    height: 44px;
    width: 40px;
  }
  .inventory {
    width: min(380px, calc(100% - 2 * max(var(--world-left), var(--world-right))));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px 6px;
    gap: 2px;
  }
  .inventory button {
    min-width: 0;
    min-height: 48px;
    padding: 2px 2px 4px;
  }
  .slot-art,
  .slot-art img {
    width: 31px;
    height: 29px;
  }
  .slot-label {
    font-size: 10px;
    white-space: nowrap;
  }
  .world-tools {
    top: 44%;
    gap: 7px;
  }
  .control-block button {
    width: 44px;
    height: 44px;
  }
  .scale-hud {
    bottom: calc(var(--dock-bottom) + 66px);
    left: var(--world-left);
    font-size: 9px;
    padding: 3px 5px;
  }
  .field-companion {
    left: var(--world-left);
    bottom: calc(var(--dock-bottom) + 96px);
  }
  .field-companion .item-art {
    width: 38px;
    height: 38px;
  }
  .world-conditions i:nth-child(even) {
    display: none;
  }
  .game-panel,
  dialog#overlay {
    left: var(--world-left);
    right: var(--world-right);
    top: auto;
    width: auto;
    height: min(74dvh, var(--atlas-panel-space));
    bottom: calc(var(--dock-bottom) + 69px);
    border-radius: 9px;
  }
  #menu-content {
    padding: 12px;
  }
  .layer-palette {
    right: calc(var(--world-right) + 51px);
    --layer-top: 18%;
    width: min(218px, calc(100% - var(--world-right) - var(--world-left) - 51px));
  }
  #map-context {
    left: var(--world-left);
    top: calc(var(--world-top) + 111px);
    width: min(218px, 66vw);
  }
  .context-data {
    padding: 9px 42px 4px 10px;
  }
  .context-data h2 {
    font-size: 17px;
  }
  .context-data p,
  .world-context-card .context-cover {
    display: none;
  }
  .context-data small {
    font-size: 8px;
  }
  .context-x {
    top: 4px;
    right: 3px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
  }
  .context-btn {
    min-height: 40px;
    font-size: 13px;
    text-align: start;
  }
  .game-panel:not([hidden]) ~ dialog ~ .field-companion,
  #world[data-detail] #map-context,
  #world[data-menu] #map-context {
    visibility: hidden;
  }
}
@media (max-width: 370px) and (orientation: portrait) {
  .sign-copy strong {
    font-size: 18px;
  }
  .world-sign {
    padding-inline: 6px;
  }
  .sign-medallion,
  .sign-medallion img {
    width: 27px;
  }
  .sky-controls .season-control #season-thumb {
    display: none;
  }
  #menu-content .dc-field .rv-select-trigger {
    gap: 5px;
    padding-inline: 8px;
    font-size: 14px;
  }
  #menu-content .dc-filters {
    margin-top: 8px;
    align-items: start;
  }
  #menu-content .dc-result-head {
    margin-block: 2px;
    min-height: 26px;
  }
  #menu-content .dc-field .rv-select-trigger > svg:first-child {
    display: none;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  #world {
    --gutter: 8px;
    --dock-bottom: max(6px, env(safe-area-inset-bottom));
  }
  .hud-brand-stack {
    grid-template-columns: auto auto;
    align-items: start;
    gap: 8px;
  }
  .hud-quick-actions {
    display: contents;
  }
  .world-guide-link {
    grid-area: 2 / 1;
    min-height: 44px;
  }
  .world-sign {
    padding: 4px 8px;
    gap: 6px;
    min-width: 0;
  }
  .sign-copy strong {
    font-size: 22px;
    letter-spacing: -.7px;
  }
  .sign-medallion,
  .sign-medallion img {
    width: 34px;
    height: 34px;
  }
  .sign-arrow {
    display: none;
  }
  .world-search {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 6px;
  }
  .world-search span,
  .world-search kbd,
  .field-companion {
    display: none;
  }
  .game-panel,
  dialog#overlay {
    top: var(--world-top);
    bottom: calc(var(--dock-bottom) + 65px);
    left: auto;
    right: calc(var(--world-right) + 52px);
    width: min(420px, 62vw, calc(100% - var(--world-left) - var(--world-right) - 224px));
    height: auto;
  }
  .inventory button {
    padding: 0 3px;
  }
  .slot-label {
    white-space: nowrap;
  }
  .scale-hud {
    top: calc(var(--world-top) + 106px);
    bottom: auto;
    left: var(--world-left);
  }
  .slot-art,
  .slot-art img {
    height: 25px;
  }
  .world-tools {
    top: 51%;
  }
  #map-context {
    top: calc(var(--world-top) + 132px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-conditions i {
    animation: none;
    opacity: 0.32;
  }
}
.help-intro {
  display: flex;
  align-items: center;
  gap: 9px;
}
.game-instructions {
  margin: 12px 0;
}
.game-instructions div {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 6px;
  padding: 9px 0;
  font-size: 14px;
}
.game-instructions dt {
  font-weight: 700;
}
.game-instructions dd {
  margin: 0;
  color: var(--muted);
}
#menu-content .fg-shell {
  padding: 0;
  font-family: var(--font);
  background: none;
}
#menu-content .fg-head {
  display: none;
}
#menu-content .fg-layout {
  display: block;
}
#menu-content .fg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 14px;
}
#menu-content .fg-nav button {
  min-height: 29px;
  padding: 4px 6px;
  font-size: 11px;
  gap: 4px;
}
#menu-content .fg-nav svg {
  width: 13px;
  height: 13px;
}
#menu-content .fg-intro {
  margin-bottom: 10px;
}
#menu-content .fg-intro h2 {
  font-size: 26px;
}
#menu-content .fg-duo,
#menu-content .fg-budget,
#menu-content .fg-phones {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#menu-content .fg-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
#menu-content .dc-head {
  display: none;
}
#menu-content .dc-index {
  margin: 0;
}
#menu-content .dc-index header {
  margin: 0 0 10px;
}
#menu-content .dc-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 9px;
}
#menu-content .dc-search {
  grid-column: 1/-1;
}
#menu-content .dc-results {
  display: grid;
  grid-template-columns: 1fr;
}
#menu-content .dc-result-head {
  margin: 10px 0;
}
#menu-content .dc-seal {
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 4px;
}
#menu-content .dc-seal:has(img) {
  padding: 0;
}
.place-photo-thumb {
  width: 48px;
  height: 44px;
  flex: none;
  object-fit: cover;
  border-radius: 4px;
}
.dc-seal .place-photo-thumb {
  width: 100%;
  height: 100%;
}
#menu-content .view-lead {
  padding: 0 0 8px;
}
#menu-content .view-lead .kicker {
  display: none;
}
#menu-content .atlas-saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 10px;
}
#menu-content .atlas-passport-account-link,
#menu-content .atlas-visit-list-link {
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#menu-content .atlas-stamp-book-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 12px 0 18px;
  border: 1px solid #264d40;
  border-radius: 6px;
  background: var(--green);
  color: var(--card);
  text-decoration: none;
}
#menu-content .atlas-stamp-book-link:hover {
  background: #30634e;
}
.atlas-stamp-book-link strong,
.atlas-stamp-book-link small {
  display: block;
}
.atlas-stamp-book-link strong {
  font-size: 17px;
  line-height: 1.2;
}
.atlas-stamp-book-link small {
  margin-top: 2px;
  color: #e0e9d7;
  font-size: 13px;
}
.atlas-stamp-book-link > svg {
  color: var(--sun);
}
.atlas-place-visit {
  margin-block: 13px;
}
.atlas-place-visit button {
  min-height: 44px;
  max-width: 100%;
  text-align: start;
}
.atlas-place-visit button[aria-pressed="true"] {
  background: #e2ecdf;
  color: var(--green);
}
#menu-content .empty {
  padding: 15px;
}
#menu-content .stamp-book,
#menu-content .collection {
  grid-template-columns: 1fr;
}
#menu-content .passport-cover {
  display: none;
}
#menu-content .passport-pages {
  padding: 9px;
}
#menu-content .stamp-grid {
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
}
#menu-content .pocket-export {
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
}
.trail-badges h2 {
  font-size: 21px;
}
.badge-row {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 4px;
  width: 100%;
  text-align: left;
  font-weight: 650;
  font-size: 13px;
}
.badge-row b {
  margin-left: auto;
  font: 11px var(--mono);
}
.badge-row.achieved {
  background: #e7ebcf;
}
.place-field-visual {
  margin: 0;
}
.photo-stage {
  position: relative;
  height: clamp(153px, 23vh, 240px);
  background: #d7e0d0;
}
.photo-stage .reference-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.place-field-visual figcaption {
  padding: 5px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 8px;
  background: #eceddb;
  color: #4c624e;
  font: 10px/1.45 var(--font);
  border-bottom: 1px solid var(--line);
}
.photo-attribution {
  word-break: break-word;
}
.place-title .place-photo-thumb {
  margin-right: 1px;
}
.overview-inset {
  display: none;
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--dock-bottom) + 33px);
  background: #c1ded7;
  border: 2px solid #7f8869;
  border-radius: 5px;
  padding: 3px;
  width: 126px;
  height: 66px;
  box-shadow:
    inset 0 0 0 1px #f7edc6,
    0 2px 0 #8d855d;
}
.overview-inset svg {
  display: block;
  width: 100%;
  height: 100%;
}
#world:not([data-tier="national"]) .overview-inset {
  display: block;
}
#world:not([data-tier="national"]) .field-companion {
  display: none;
}
#region-hover {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--gutter) + 132px);
  width: 230px;
  border: 1px solid #87947c;
  background: #faf5de;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 3px 0 #88917a,
    0 6px 16px #34524422;
  animation: hud-in 0.18s ease-out;
}
#region-hover img {
  display: block;
  width: 100%;
  height: 83px;
  object-fit: cover;
}
#region-hover div {
  padding: 8px 11px;
}
#region-hover small {
  font: 12px serif;
  color: #8b7954;
}
#region-hover strong {
  font-size: 20px;
  padding-left: 7px;
  letter-spacing: -0.8px;
}
#region-hover span {
  display: block;
  color: #59705c;
  font-size: 12px;
  line-height: 1.4;
  margin: 3px 0;
}
#world[data-menu] #region-hover,
#world[data-detail] #region-hover {
  display: none;
}
.hunt-launch {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #b8aa79;
  background: #f4ebc9;
  border-radius: 5px;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
}
.hunt-launch span {
  flex: 1;
}
.hunt-launch b,
.hunt-launch small {
  display: block;
}
.hunt-launch b {
  font-size: 17px;
}
.hunt-launch small {
  font-size: 12px;
  color: #617058;
}
.hunt-head,
.hunt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hunt-head {
  padding-bottom: 6px;
}
.hunt-head strong {
  color: #a06e2e;
  font: 11px var(--mono);
}
.hunt-pic {
  width: 100%;
  height: clamp(115px, 21vh, 200px);
  object-fit: cover;
  display: block;
  border: 1px solid #a5ae98;
  border-radius: 4px;
}
.hunt-credit {
  font-size: 9px;
  color: #687461;
  margin: 2px 0 8px;
}
.hunt-card h2,
.hunt-finish h2 {
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.85px;
  margin: 5px 0;
}
.hunt-card p,
.hunt-finish p {
  font-size: 14px;
  color: #5e6d5b;
  line-height: 1.4;
  margin: 6px 0 10px;
}
.hunt-options {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.hunt-options button {
  flex: auto;
  padding: 8px 5px;
  background: #e6ebd7;
  border: 1px solid #a8b49a;
  border-radius: 4px;
  font-weight: 650;
  font-size: 13px;
}
.hunt-answer {
  color: #446643;
}
.hunt-finish {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px;
}
.hunt-card .primary {
  font-size: 12px;
}
#menu-content .atlas-guide-footer {
  margin-top: 20px;
  border: 1px solid #354359;
  border-radius: 7px;
  overflow: hidden;
}
#menu-content .atlas-guide-footer .rv-footer-main {
  display: block;
  width: auto;
  margin: 0;
  padding: 14px 12px 10px;
}
#menu-content .atlas-guide-footer .rv-footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(108px, 100%), 1fr));
  gap: 8px 11px;
  width: auto;
  margin: 0;
  padding: 0;
}
#menu-content .atlas-guide-footer .rv-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.25;
}
.help-intro .menu-intro h2 {
  margin-top: 1px;
}
@media (max-width: 650px) {
  .overview-inset {
    width: 80px;
    height: 42px;
    bottom: calc(var(--dock-bottom) + 90px);
  }
  #world[data-menu] .overview-inset,
  #world[data-detail] .overview-inset {
    display: none;
  }
  .game-panel[data-panel="photo-hunt"] #menu-content {
    padding: 8px 12px 12px;
  }
  .hunt-pic {
    height: clamp(72px, 14dvh, 124px);
  }
  .hunt-card h2 {
    font-size: 22px;
  }
  .hunt-card p {
    margin-block: 5px 7px;
  }
}
.season-control #season-thumb {
  display: grid;
  place-items: center;
  width: 43px;
  height: 37px;
  min-width: 0;
  border: 1px solid #b8ad8a;
  border-radius: 3px;
  background: #efdecb;
}
.season-control #season-thumb svg {
  filter: drop-shadow(0 1px 0 #93775e50);
}
#world[data-season="summer"] #season-thumb {
  background: #e8eac9;
}
#world[data-season="autumn"] #season-thumb {
  background: #f5dfbb;
}
#world[data-season="winter"] #season-thumb {
  background: #dce9e9;
}
@media (max-width: 650px) {
  .season-control #season-thumb {
    width: 31px;
    height: 30px;
  }
  .season-control #season-thumb svg {
    width: 23px;
    height: 23px;
  }
}
dialog#overlay {
  left: auto;
  height: calc(100% - var(--gutter) - var(--dock-bottom) - 149px);
  overscroll-behavior: contain;
}
@media (max-width: 650px) and (orientation: portrait) {
  dialog#overlay {
    left: var(--world-left);
    height: min(74dvh, var(--atlas-panel-space));
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  dialog#overlay {
    height: calc(100% - var(--world-top) - var(--dock-bottom) - 65px);
    left: auto;
  }
}
.credit-entry {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.credit-entry strong,
.credit-entry small {
  display: block;
}
.credit-entry small {
  font-size: 12px;
  color: var(--muted);
}
.credit-entry a {
  font-size: 11px;
}
.photo-unavailable {
  padding: 15px;
}
.fg-month-card .fg-landscape {
  object-fit: cover;
  image-rendering: auto;
}
.game-panel[data-panel="photo-hunt"] {
  bottom: auto;
  height: auto;
  max-height: calc(100% - var(--gutter) - var(--dock-bottom) - 160px);
}
@media (min-width: 1050px) {
  .game-panel[data-panel="photo-hunt"] {
    left: var(--gutter);
    right: auto;
    top: calc(var(--gutter) + 132px);
    width: 278px;
  }
  .game-panel[data-panel="photo-hunt"] .hunt-pic {
    height: 115px;
  }
}
@media (max-width: 650px) {
  .game-panel[data-panel="photo-hunt"] {
    bottom: calc(var(--dock-bottom) + 69px);
    max-height: min(62dvh, var(--atlas-panel-space));
  }
}
.atlas-sight-thumb {
  position: relative;
  display: inline-flex;
  flex: none;
  overflow: hidden;
  min-width: 0;
}
.dc-seal .atlas-sight-thumb {
  width: 100%;
  height: 100%;
}


@media (max-height: 520px) and (orientation: landscape) {
  .game-panel[data-panel="photo-hunt"] {
    bottom: calc(var(--dock-bottom) + 65px);
    max-height: calc(100% - var(--world-top) - var(--dock-bottom) - 65px);
  }
  .hunt-pic {
    height: clamp(72px, 22dvh, 110px);
  }
}

@media (pointer: coarse) {
  #world .search-field,
  #world .dc-search input,
  #world .fg-shell input:not([type="checkbox"]) {
    font-size: max(16px, 1em);
  }
  .panel-x,
  .modal-top .sq,
  .palette-heading button,
  dialog#overlay .save {
    min-width: 44px;
    min-height: 44px;
  }
  .layer-palette {
    max-height: calc(100% - var(--layer-top) - var(--dock-bottom) - 65px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .layer-palette label,
  .hunt-options button,
  .hunt-actions button,
  .hunt-finish button,
  .sw-seasons button,
  .sw-links > a,
  #world .tabs button,
  #menu-content .fg-months button,
  #menu-content .stamp-regions button {
    min-height: 44px;
  }
  #menu-content .dc-saved {
    min-height: 36px;
  }
  #menu-content .fg-nav button {
    min-height: 36px;
  }
  #menu-content .fg-sources a,
  dialog#overlay .source-link {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    min-height: 32px;
    padding-block: 4px;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 850px) {
  #menu-content .sw-seasons button {
    gap: 4px;
    padding-inline: 4px;
  }
}
.game-panel[data-keyboard],
dialog#overlay[data-keyboard] {
  top: calc(var(--dialog-visible-top) + 6px);
  left: var(--world-left);
  right: var(--world-right);
  bottom: auto;
  width: auto;
  height: calc(var(--dialog-visible-height) - 12px);
  max-height: none;
}
