.atlas-page {
    padding: 22px 12px 18px;
    background: linear-gradient(#10182b, #081d28);
    min-height: 100%
}

.atlas-heading {
    text-align: center;
    padding: 0 18px 20px
}

.atlas-heading .eyebrow {
    font-size: 9px;
    letter-spacing: .19em;
    color: #c4b27f
}

.atlas-location {
    width: 21%!important;
}


.atlas-heading h2 {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 28px;
    margin: 6px 0;
    color: #f7e9b7
}

.atlas-heading p:last-child {
    font-size: 12px;
    color: #abbccc;
    margin: 7px 0 0
}

.atlas-map {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border: 1px solid #ae965a88;
    border-radius: 18px;
    background: #103c50;
    box-shadow: 0 14px 35px #0007
}

.atlas-terrain {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none
}

.atlas-map::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 30px #03132880;
    border-radius: inherit;
    pointer-events: none;
    z-index: 4
}

.atlas-location {
    position: absolute;
    z-index: 2;
    left: var(--x);
    top: var(--y);
    width: 34%;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: #fff;
    transform: translate(-50%, -50%);
    -webkit-tap-highlight-color: transparent
}

.atlas-location[data-atlas-location="citadel"] {
    width: 27%
}

.atlas-location-label {
    position: relative;
    z-index: 2;
    display: block;
    width: max-content;
    max-width: 220%;
    box-sizing: border-box;
    text-align: center;
    margin: 0 0 -5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 8px;
    border: 1px solid #d4bc8266;
    border-radius: 8px;
    background: #0e172de8;
    box-shadow: 0 3px 10px #0007;
    line-height: 1.18
}

.atlas-location-label strong {
    display: block;
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 700;
    white-space: normal;
    overflow-wrap: break-word
}

.atlas-location-label small {
    display: block;
    font-size: 9px;
    line-height: 1.6;
    color: #e3d0a5
}

.atlas-location img {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 4px #0008);
    transition: filter .23s ease, transform .23s ease;
    transform-origin: 50% 80%;
    pointer-events: none
}

.atlas-location:hover,
.atlas-location:focus-visible {
    z-index: 5
}

.atlas-location:hover img,
.atlas-location:focus-visible img {
    transform: translateY(-4px) scale(1.06);
    filter: drop-shadow(1px 0 0 var(--glow)) drop-shadow(-1px 0 0 var(--glow)) drop-shadow(0 1px 0 var(--glow)) drop-shadow(0 -1px 0 var(--glow)) drop-shadow(0 0 9px var(--glow)) brightness(1.15)
}

.atlas-location:active img {
    transform: translateY(-1px) scale(.98)
}

.atlas-location:focus-visible {
    outline: 2px solid var(--glow);
    outline-offset: 6px;
    border-radius: 12px
}

.atlas-location.is-current .atlas-location-label {
    border-color: #ffe398;
    color: #ffeab4
}

.atlas-position {
    position: absolute;
    bottom: 0;
    left: 50%;
    color: #fff0ae;
    text-shadow: 0 0 12px #fbe3a3;
    font-size: 16px;
    transform: translateX(-50%)
}

.atlas-location.is-locked .atlas-location-label small {
    color: #c1baca
}

.atlas-north {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #fff0b8;
    font: 700 12px Georgia, serif;
    text-shadow: 0 1px 5px #000
}

.atlas-future-note {
    position: absolute;
    bottom: 12px;
    left: 10%;
    width: 80%;
    text-align: center;
    color: #ecf6ff;
    font-size: 10px;
    text-shadow: 0 1px 5px #000;
    background: #0917289c;
    padding: 6px;
    border-radius: 9px
}

.atlas-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 14px 6px;
    font-size: 10px;
    color: #c9d2dc
}

.atlas-legend span:first-child {
    color: #ffe398
}

.atlas-legend p {
    margin: 0;
    flex-basis: 100%;
    text-align: center;
    color: #9aa9b8
}

.atlas-destination-art {
    display: block;
    width: 180px;
    max-width: 65%;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 14px #b58cf640)
}

.atlas-travel-status {
    font-size: 12px;
    padding: 12px;
    background: #ffffff08;
    border-radius: 8px;
    color: #d4c4e4
}

.atlas-travel-modal .primary-button {
    width: 100%
}

@media(max-width:360px) {
    .atlas-page {
        padding: 18px 6px
    }

    .atlas-location-label {
        padding: 4px 5px
    }

    .atlas-location-label small {
        font-size: 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    .atlas-location img {
        transition: none
    }

    .atlas-location:hover img,
    .atlas-location:focus-visible img {
        transform: none
    }
}
