/* Atlas: quiet framing, readable destinations, and the actual live world. */
#farm-overview-ui.farm-atlas {
  padding: 22px !important;
  color: #f4eedc;
}
#farm-overview-ui.farm-atlas .farm-map-backdrop {
  background: radial-gradient(
    ellipse at 75% 35%,
    #304c3f,
    #142c25 85%
  ) !important;
}
.farm-atlas .farm-map-dialog {
  border: 1px solid #b5bf9c55 !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 90px #0005 !important;
}
#farm-overview-ui.farm-atlas .farm-map-heading {
  position: relative;
  inset: auto;
  flex: none;
  min-height: 88px;
  padding: 18px 24px;
  background: #f1ead6;
  border-bottom: 1px solid #d7d0bc;
  color: #244435;
  pointer-events: auto;
}
#farm-overview-ui.farm-atlas .farm-map-heading > div {
  padding-left: 0;
}
#farm-overview-ui.farm-atlas .farm-map-heading > div:before {
  display: none;
}
#farm-overview-ui.farm-atlas .farm-map-heading small {
  font:
    600 9px "Space Grotesk",
    sans-serif;
  letter-spacing: 2px;
  color: #69775c;
}
#farm-overview-ui.farm-atlas .farm-map-heading h1 {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 5px 0 0;
  font:
    400 34px/1 Lilita,
    sans-serif;
  letter-spacing: 0.5px;
}
.farm-atlas .farm-map-heading h1 span {
  font:
    400 12px "Space Grotesk",
    sans-serif;
  letter-spacing: 0;
  color: #69775c;
}
.farm-atlas #farm-map-close {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid #9da88c;
  border-radius: 50%;
  background: transparent;
  color: #244435;
  font: 300 28px sans-serif;
}
.farm-atlas-workspace {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.farm-atlas-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 14px 20px;
  background: #f1ead6;
  color: #244435;
  border-right: 1px solid #d7d0bc;
  min-height: 0;
  overflow: auto;
  pointer-events: auto;
}
.atlas-section-title {
  padding: 0 10px;
  font:
    600 9px "Space Grotesk",
    sans-serif;
  letter-spacing: 1.4px;
  color: #6e795f;
}
#farm-overview-ui.farm-atlas .farm-map-destinations {
  display: flex;
  flex-direction: column;
  position: static;
  inset: auto;
  padding: 0;
  background: none;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: visible;
}
#farm-overview-ui.farm-atlas .farm-map-destinations button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #294638;
  text-align: left;
  font:
    600 11px "Space Grotesk",
    sans-serif;
  white-space: nowrap;
}
.farm-atlas .farm-map-destinations button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.farm-atlas .farm-map-destinations button b {
  margin-left: auto;
  font-size: 15px;
  font-weight: 400;
  color: #7a846a;
}
#farm-overview-ui.farm-atlas .farm-map-destinations button:hover {
  background: #e3ddc8;
}
#farm-overview-ui.farm-atlas .farm-map-destinations [aria-pressed="true"] {
  background: #294b3b;
  color: #fff5db;
  border-color: #294b3b;
}
#farm-overview-ui.farm-atlas .farm-map-destinations [aria-pressed="true"] b {
  color: #e7bd62;
}
.atlas-travel-note {
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid #c9cdb8;
}
.atlas-travel-note > img {
  width: 36px;
  height: 36px;
  float: left;
  margin: 0 8px 8px 0;
}
.atlas-travel-note strong {
  display: block;
  font:
    400 17px Lilita,
    sans-serif;
}
.atlas-travel-note p {
  margin: 7px 0 0;
  font:
    400 10px/1.7 "Space Grotesk",
    sans-serif;
  color: #68755e;
}
#farm-overview-ui.farm-atlas .farm-map-view {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px;
  min-width: 0;
  overflow: hidden;
}
.farm-atlas #farm-map-stage {
  flex: 0 1 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 2272/941;
  min-height: 0;
  max-height: calc(100% - 76px);
  border: 1px solid #d2c28e80;
  border-radius: 6px;
  box-shadow: 0 8px 30px #0003;
  background: none;
}
.atlas-map-caption,
.atlas-map-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  font:
    500 8px "Space Grotesk",
    sans-serif;
  letter-spacing: 1.3px;
  color: #d4d8bd;
}
.atlas-map-caption span:last-child {
  color: #dfc784;
}
.atlas-map-legend {
  justify-content: center;
  gap: 22px;
  letter-spacing: 0;
  color: #bdcbb7;
}
.atlas-map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.atlas-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8bb8c;
}
.atlas-map-legend img {
  width: 18px;
  height: 18px;
}
#farm-overview-ui.farm-atlas .farm-map-bottom {
  position: relative;
  inset: auto;
  min-height: 78px;
  flex: none;
  padding: 14px 24px;
  background: #203b30;
  border-top: 1px solid #b5bf9c33;
}
.farm-atlas #farm-map-status {
  font-size: 12px;
  color: #fff2d6;
  min-height: 0;
  margin: 0 0 4px;
}
.farm-atlas #farm-map-clear {
  font:
    500 10px "Space Grotesk",
    sans-serif;
  color: #dbc78e;
  min-height: 22px;
  padding: 0;
  margin: 0;
  border: 0;
}
#farm-overview-ui.farm-atlas .farm-map-continue {
  min-height: 44px;
  gap: 30px;
  padding: 12px 20px;
  border: 1px solid #ead18f;
  border-radius: 6px;
  background: #e6c779;
  color: #213f30;
  font:
    400 17px Lilita,
    sans-serif;
}
.farm-atlas .map-place-label {
  padding: 4px 6px;
  border: 1px solid #ead3a185;
  background: #1f382ff0;
  color: #fff2d3;
  font-size: 9px;
  border-radius: 4px;
  box-shadow: 0 2px 6px #0002;
}
.farm-atlas button:focus-visible {
  outline: 3px solid #c69737;
  outline-offset: 2px;
}
#title-screen .loading-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}
#title-screen .loading-bar-row .loading-track {
  flex: 1;
  min-width: 0;
  margin: 0;
}
#title-screen #loading-percent {
  display: block;
  flex: 0 0 36px;
  color: var(--farm-gold);
  font:
    700 11px/1 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.3px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  #farm-overview-ui.farm-atlas {
    padding: 10px !important;
  }
  #farm-overview-ui.farm-atlas .farm-map-dialog {
    height: min(100%, 580px);
    margin: auto;
  }
  #farm-overview-ui.farm-atlas .farm-map-heading {
    padding: 14px 16px;
    min-height: 76px;
  }
  #farm-overview-ui.farm-atlas .farm-map-heading h1 {
    font-size: 28px;
  }
  .farm-atlas .farm-map-heading h1 span {
    display: none;
  }
  .farm-atlas-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .farm-atlas-sidebar {
    padding: 10px 12px;
    gap: 0;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #c9cdb8;
  }
  .atlas-section-title,
  .atlas-travel-note {
    display: none;
  }
  #farm-overview-ui.farm-atlas .farm-map-destinations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  #farm-overview-ui.farm-atlas .farm-map-destinations button {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 55px;
    padding: 5px 1px;
    font-size: 8px;
    white-space: normal;
    text-align: center;
  }
  .farm-atlas .farm-map-destinations button img {
    width: 24px;
    height: 24px;
  }
  .farm-atlas .farm-map-destinations button b {
    display: none;
  }
  #farm-overview-ui.farm-atlas .farm-map-view {
    padding: 14px 10px;
    gap: 12px;
  }
  .atlas-map-caption {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .atlas-map-caption span:last-child {
    display: none;
  }
  .atlas-map-legend {
    font-size: 7px;
    gap: 12px;
  }
  #farm-overview-ui.farm-atlas .farm-map-bottom {
    padding: 12px;
    gap: 10px;
    min-height: 76px;
  }
  .farm-atlas #farm-map-status {
    font-size: 10px;
  }
  #farm-overview-ui.farm-atlas .farm-map-continue {
    font-size: 13px;
    padding: 10px;
    gap: 12px;
    min-height: 40px;
  }
  .farm-atlas .map-place-label {
    font-size: 6px;
    padding: 3px;
  }
}
@media (max-height: 520px) and (min-width: 560px) {
  #farm-overview-ui.farm-atlas {
    padding: 8px !important;
  }
  #farm-overview-ui.farm-atlas .farm-map-heading {
    min-height: 56px;
    padding: 8px 16px;
  }
  #farm-overview-ui.farm-atlas .farm-map-heading h1 {
    font-size: 25px;
  }
  .farm-atlas .farm-map-heading h1 span {
    font-size: 10px;
  }
  .farm-atlas-workspace {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .farm-atlas-sidebar {
    padding: 8px;
    gap: 7px;
    border-bottom: 0;
    border-right: 1px solid #c9cdb8;
    overflow: auto;
  }
  #farm-overview-ui.farm-atlas .farm-map-destinations {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  #farm-overview-ui.farm-atlas .farm-map-destinations button {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 25px;
    padding: 2px 6px;
    font-size: 9px;
    text-align: left;
  }
  .farm-atlas .farm-map-destinations button img {
    width: 20px;
    height: 20px;
  }
  .atlas-section-title {
    display: block;
    font-size: 7px;
    padding: 0 6px;
  }
  .atlas-travel-note {
    display: none;
  }
  #farm-overview-ui.farm-atlas .farm-map-view {
    padding: 10px 18px;
    gap: 8px;
  }
  .farm-atlas #farm-map-stage {
    max-height: calc(100% - 44px);
  }
  #farm-overview-ui.farm-atlas .farm-map-bottom {
    flex-direction: row;
    align-items: center;
    min-height: 55px;
    padding: 7px 16px;
  }
  #farm-overview-ui.farm-atlas .farm-map-continue {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 14px;
  }
  .farm-atlas #farm-map-status {
    font-size: 10px;
  }
  .farm-atlas .map-place-label {
    font-size: 7px;
    padding: 3px;
  }
}

.farm-atlas #farm-map-stage {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.farm-atlas #farm-map-frame {
  border: 1px solid #d2c28e80;
  border-radius: 6px;
  box-shadow: 0 8px 30px #0003;
  box-sizing: border-box;
}
@media (max-height: 520px) and (min-width: 560px) {
  #farm-overview-ui.farm-atlas .farm-map-dialog {
    height: 100%;
    margin: 0;
  }
  .farm-atlas .farm-map-bottom > div {
    width: auto;
    max-width: 60%;
  }
}
@media (max-height: 520px) and (min-width: 560px) {
  #farm-overview-ui.farm-atlas .farm-map-bottom {
    flex-wrap: nowrap;
  }
  #farm-overview-ui.farm-atlas .farm-map-continue {
    width: auto;
    flex-shrink: 0;
  }
  .farm-atlas .farm-map-bottom > div {
    display: block;
  }
}
