.atlas-map-key {
  position: absolute;
  z-index: 1;
  inset: auto var(--edge) calc(var(--edge) + 96px) auto;
  width: 188px;
  padding: 13px 15px 4px;
  border: 1px solid #c7cabe;
  border-radius: 12px;
  background: #fffef8f5;
  color: #252c22;
  box-shadow: 0 3px 12px #23301a0d;
  pointer-events: none;
}
.atlas-map-key h2 {
  margin: 0 0 9px;
  font: 500 20px/1 Georgia, serif;
  letter-spacing: -.65px;
}
.amh-venue-key {display: none}
.world:has(.venue-scene) .amh-key-body {display: none}
.world:has(.venue-scene) .amh-venue-key {display: block}
.amh-venue-key p {max-width: 18ch; margin: 0 0 9px; color: #41483a; font-size: 14px; line-height: 1.35}
.amh-key-body ul {display: grid; gap: 5px; margin: 0 0 9px; padding: 0; list-style: none}
.amh-key-body li {display: flex; align-items: center; gap: 8px; color: #41483a; font-size: 12px; line-height: 1.35}
.amh-swatch {
  display: inline-block;
  width: 15px;
  height: 10px;
  border: 1px solid #65735a;
  border-radius: 5px;
  background: #fafaf4;
}
.amh-current {background: #242d20; border-color: #1e281c}
.amh-open {background: #daff73}
.amh-city {display: none}
.world:has(.fa-terrain) .amh-key-body .amh-state {display: none}
.world:has(.fa-terrain) .amh-city {display: inline}
.world:has(.fa-terrain) .amh-swatch {width: 10px; height: 10px; margin-inline: 2.5px; border-radius: 50%}
.world:has(.fa-terrain) .amh-current {outline: 1.5px solid #222e1e; outline-offset: 1px; background: #d2f852}
.world:has(.fa-terrain) .amh-closed {border-style: dashed}
.amh-start {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 7px;
  border-top: 1px solid #daddd0;
  padding: 0;
  color: #26341c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  pointer-events: auto;
}
.amh-help-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1.3px solid currentColor;
  border-radius: 50%;
  font: 700 11px/1 Arial,sans-serif;
}
.amh-start:hover {background: #edf1e4; border-radius: 6px}
.amh-mobile-label {display: none}
.world.market-focused .atlas-map-key {visibility: hidden}

@media (max-width: 800px) {
  .world .atlas-map-key {
    inset: 10px 51px auto auto;
    width: auto;
    padding: 0;
    border-radius: 12px;
  }
  .amh-key-body,.world:has(.venue-scene) .amh-venue-key {display: none}
  .amh-start {justify-content: center; width: auto; min-height: 35px; padding-inline: 10px; gap: 6px; border: 0}
  .amh-mobile-label {display: inline}
  .amh-start-label {position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap}
  .world #marketPeek {top: 52px}
}
@media (min-width: 801px) and (max-height: 475px) {
  .world .atlas-map-key {right: calc(var(--edge) + 50px)}
}

.amh-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  font-family: "DM Sans","Helvetica Neue",Arial,sans-serif;
}
.amh-layer[hidden], .atlas-map-key[hidden],
body:has(.atc-dialog[open], #guides[open], #routePlanner[open]) .amh-layer,
body:has(.world.visit-travel) > .amh-layer {display: none}
.amh-shade {
  position: absolute;
  inset: 0;
  background: rgba(19, 24, 19, .65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.amh-blockers i {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
}
.atlas-map-coach {
  position: absolute;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 5px 10px;
  box-sizing: border-box;
  width: min(246px, calc(100% - 20px));
  padding: 10px 12px 6px;
  border: 1px solid #cacbbb;
  border-radius: 12px;
  background: #fffef7;
  color: #252c22;
  box-shadow: 0 4px 18px #17201126;
  text-align: left;
  pointer-events: auto;
}
.amh-caption small {display: block; color: #58614f; font-size: 11px; line-height: 1.25; font-weight: 620}
.amh-caption p {margin: 1px 0 0; font-size: 16px; font-weight: 560; letter-spacing: -.025em; line-height: 1.25}
.amh-ring {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid #e4ff75;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #344021, inset 0 0 0 1px #435029, 0 0 10px #c7ef5745;
  pointer-events: none;
}
.amh-ring.amh-secondary {border-width: 2px; border-color: #e9f4b7}
.amh-wave {position: absolute; inset: -3px; border: 2px solid #e8ff7e; border-radius: inherit; opacity: 0; pointer-events: none}
.amh-marker {position: absolute; width: 70px; height: 70px; z-index: 1; pointer-events: none}
.amh-scout,.amh-scout svg {width: 100%; height: 100%; display: block; overflow: visible}
.amh-scout svg {filter: drop-shadow(1px 1px 0 #f8f9df) drop-shadow(-1px -1px 0 #f8f9df) drop-shadow(0 2px 2px #17211380)}
.amh-marker[data-direction=left] svg {transform: scaleX(-1)}
.amh-arm-up,.amh-arm-down {display: none}
.amh-marker:is([data-direction=up],[data-direction=down]) .amh-arm-side {display: none}
.amh-marker[data-direction=up] .amh-arm-up,.amh-marker[data-direction=down] .amh-arm-down {display: inline}
.amh-nav {grid-column: 1/-1; display: flex; align-items: center; gap: 4px}
.amh-nav button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  color: #273021;
  background: transparent;
  line-height: 1.2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.amh-nav .amh-dismiss {margin-right: auto; color: #505849; font-weight: 500}
.amh-nav .amh-back {background: #f2f3eb}
.amh-nav .amh-next {padding-inline: 11px; background: #e7edda}
.amh-nav button[hidden] {display: none}
@media (hover:hover) {
  .amh-nav button:hover {background: #eaecdf}
  .amh-nav .amh-next:hover {background: #d8e4c3}
}
.amh-nav button:focus-visible,.atlas-map-key:has(.amh-start:focus-visible) {outline: 2px solid #536b38; outline-offset: 1px}
@media (pointer:coarse) {
  .amh-nav button {min-height: 44px; min-width: 44px}
}
@media (prefers-reduced-motion: reduce) {
  .amh-layer, .amh-layer * {transition: none !important; animation: none !important}
}

@media (prefers-reduced-motion:no-preference) {
  .amh-layer[data-gesture=browse] .amh-scout-art {animation:amh-browse 1.35s .55s 3;}
  .amh-layer[data-gesture=lift] .amh-scout-art {animation:amh-lift 1.45s .55s 3;}
  .amh-layer:is([data-gesture=tap],[data-gesture=route]) .amh-scout-art > g {transform-box:fill-box;transform-origin:left center;animation:amh-point 1.25s .55s 3;}
}
@keyframes amh-browse {30%{transform:translateY(3px)} 72%{transform:translateY(-2px)}}
@keyframes amh-lift {22%{transform:translateY(3px)} 60%{transform:translateY(-5px)}}
@keyframes amh-point {35%{transform:rotate(-14deg)} 64%{transform:rotate(5deg)}}
