#world-atlas-dialog {
  width: min(1240px, calc(100% - 24px));
  max-width: 1240px;
  padding: 24px;
  background: #f8f1d4;
}
#world-atlas-dialog h2 {
  margin: 4px 0;
  font-size: 34px;
}
.atlas-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-right: 30px;
  align-items: end;
}
#world-atlas-dialog .atlas-heading p {
  margin: 0;
  font-size: 18px;
}
.atlas-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 10px;
}
.atlas-toolbar button {
  padding: 6px 12px;
  min-height: 40px;
  font-size: 18px;
}
.atlas-toolbar select {
  width: 205px;
  max-width: 100%;
  font: inherit;
  font-size: 19px;
  padding: 7px;
  background: #fffbed;
  color: #303b52;
  border: 2px solid #596b85;
}
#atlas-zoom-level {
  min-width: 42px;
  font-size: 17px;
  text-align: center;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  border: 3px solid #5a7775;
  background: #e4e7bd;
}
#atlas-viewport {
  overflow: auto;
  height: min(62vh, 620px);
  overscroll-behavior: contain;
  background: #91cbc8;
  scrollbar-color: #547e83 #b7dcd6;
}
#atlas-size {
  position: relative;
}
#atlas-map {
  position: absolute;
  width: 1440px;
  transform-origin: top left;
  background: #91cbc8 url('/assets/world-atlas.svg') left top / 1440px 930px no-repeat;
}
.atlas-city {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 126px;
  min-height: 88px;
  padding: 2px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: #263e48;
}
.atlas-city:hover,
.atlas-city:focus-visible {
  background: #fff3bd88;
  outline: 3px dashed #325b65;
  outline-offset: 2px;
}
.atlas-city[aria-pressed='true'] {
  background: #fff3bd99;
  outline: 3px solid #b7673d;
}
.atlas-miniature {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 78px;
  height: 43px;
  border-bottom: 5px solid #86a360;
}
.atlas-miniature img {
  max-width: 75px;
  max-height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 #264d4a44);
}
.atlas-city-name {
  padding: 0 5px;
  background: #fff6d9ed;
  border: 2px solid #739788;
  font-size: 20px;
  line-height: 1.05;
  white-space: nowrap;
}
.atlas-city-state {
  position: absolute;
  top: -9px;
  right: 2px;
  font-size: 18px;
  color: #205e4c;
  background: #f8f1d4;
}
.atlas-city-state:empty {
  display: none;
}
.atlas-city.is-here .atlas-city-state {
  background: #b34e3f;
  color: #fff5d1;
  padding: 0 5px;
}
.atlas-city.is-visited .atlas-city-name {
  border-color: #376d51;
  background: #e4f2c8;
}
.atlas-city-activity {
  padding: 2px 5px;
  background: #eef4e9;
  border: 1px solid #739788;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  color: #405d59;
}
.atlas-city.has-players .atlas-city-activity {
  color: #fffbed;
  background: #28594b;
  border-color: #173f36;
}
#world-atlas-dialog #atlas-online {
  margin: 10px 0;
  padding: 8px 12px;
  border-left: 4px solid #28594b;
  background: #e1edcd;
  font-size: 18px;
}
#world-atlas-dialog #atlas-city-activity {
  font-weight: 700;
  color: #28594b;
}
.atlas-detail {
  padding: 15px;
  border-left: 3px solid #5a7775;
  background: #fff8dc;
  max-height: min(62vh, 620px);
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.atlas-city[hidden],
.atlas-detail[hidden],
.atlas-gym[hidden] {
  display: none;
}
.atlas-city-leader {
  max-width: 104px;
  padding: 1px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1;
  background: #f7e9c5;
  color: #5d442c;
  border: 1px solid #94724d;
}
.atlas-city-leader:empty {
  display: none;
}
.atlas-city-power {
  max-width: 112px;
  padding: 2px 4px;
  border: 1px solid #8b6f45;
  background: #fff1b8;
  color: #503d27;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.atlas-city-power:empty {
  display: none;
}
[data-gym-relation='own'] .atlas-city-leader {
  background: #28594b;
  color: #fffbed;
  border-color: #173f36;
}
[data-gym-relation='friend'] .atlas-city-leader {
  background: #e1e5fb;
  color: #303e80;
  border-color: #55629b;
}
.atlas-city-friends {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atlas-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.atlas-filters button {
  min-height: 44px;
  padding: 7px 12px;
  font-size: 18px;
}
.atlas-filters [aria-pressed='true'] {
  background: #28594b;
  border-color: #173f36;
  color: #fffbed;
}
.atlas-gym {
  border-top: 2px solid #a6b18a;
  border-bottom: 2px solid #a6b18a;
  padding: 8px 0 12px;
  margin-top: 10px;
}
#world-atlas-dialog .atlas-gym h4 {
  margin: 0 0 4px;
}
#atlas-leader-name {
  font-size: 25px;
  font-weight: normal;
}
#atlas-leader-relation {
  color: #38563b;
}
#world-atlas-dialog #atlas-gym-step {
  margin: 10px 0;
  line-height: 1.25;
}
.atlas-gym button {
  width: 100%;
  min-height: 44px;
  padding: 7px;
  font-size: 17px;
  margin-top: 6px;
}
#world-atlas-dialog .atlas-detail h3 {
  font-size: 27px;
  margin: 2px 0 5px;
}
#world-atlas-dialog .atlas-detail p {
  font-size: 18px;
  margin: 5px 0;
}
#atlas-city-region {
  text-transform: uppercase;
  color: #6b7c71;
  letter-spacing: 1px;
}
#atlas-city-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  background: #c9d8a4;
  border: 2px solid #a6b18a;
  margin: 12px 0 5px;
}
.atlas-detail h4 {
  font-size: 19px;
  margin: 14px 0 4px;
}
#atlas-landmarks {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 1.3;
}
#atlas-landmarks li {
  margin-bottom: 6px;
}
.atlas-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0;
  font-size: 17px;
  color: #506b65;
}
#world-atlas-dialog .atlas-help {
  margin: 5px 0 12px;
  font-size: 16px;
  color: #63766b;
}
@media (max-width: 700px) {
  #world-atlas-dialog {
    padding: 16px;
  }
  .atlas-heading {
    display: block;
  }
  #world-atlas-dialog h2 {
    font-size: 28px;
  }
  .atlas-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #atlas-viewport {
    height: 340px;
  }
  .atlas-detail {
    border-left: 0;
    border-top: 3px solid #5a7775;
    display: flow-root;
    max-height: none;
    overflow-y: visible;
  }
  #atlas-city-preview {
    width: 110px;
    float: right;
    margin: 0 0 8px 12px;
  }
  .atlas-toolbar {
    gap: 5px;
  }
  .atlas-toolbar select {
    width: 100%;
  }
}
