.primary-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.atlas-hero,
.atlas-shell,
.atlas-note {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(1.35rem, 3vw, 3rem) clamp(1rem, 2.4vw, 2.4rem);
}

.atlas-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.88), rgba(5, 4, 3, 0.58), rgba(5, 4, 3, 0.94)),
    url("../../assets/images/atlas/world-of-eidryn.png") center / cover no-repeat;
  filter: saturate(0.82) contrast(1.05) brightness(0.46);
}

.atlas-copy {
  max-width: 920px;
}

.atlas-copy h1 {
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1;
}

.atlas-copy p,
.region-panel p,
.atlas-note p {
  color: #eadfc8;
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.58;
}

.atlas-shell,
.region-panel,
.atlas-note {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(22, 16, 11, 0.96), rgba(7, 5, 4, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(201, 154, 73, 0.12), transparent 18rem);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(240, 208, 138, 0.05);
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.map-toolbar button {
  min-height: 40px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: rgba(5, 4, 3, 0.72);
  padding: 0.6rem 1rem;
  font-family: "TBCinzel", Georgia, serif;
  text-transform: uppercase;
}

.map-toolbar button.is-active {
  border-color: rgba(240, 208, 138, 0.78);
  background: linear-gradient(180deg, rgba(75, 40, 18, 0.94), rgba(20, 11, 7, 0.96));
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: 1rem;
  align-items: stretch;
}

.map-stage {
  min-height: 460px;
  overflow: auto;
  border: 1px solid rgba(201, 154, 73, 0.22);
  background: #050403;
  cursor: grab;
}

.map-stage.is-dragging {
  cursor: grabbing;
}

.map-canvas {
  position: relative;
  width: 1200px;
  transform-origin: top left;
  transition: transform 160ms ease;
}

.map-canvas img {
  width: 100%;
  height: auto;
  user-select: none;
}

.map-hotspot {
  position: absolute;
  width: clamp(42px, 5vw, 72px);
  aspect-ratio: 1;
  border: 2px solid rgba(242, 209, 138, 0.84);
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.18);
  box-shadow: 0 0 22px rgba(242, 209, 138, 0.32), inset 0 0 18px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
}

.map-hotspot:hover,
.map-hotspot.is-active {
  background: rgba(242, 209, 138, 0.32);
  box-shadow: 0 0 34px rgba(242, 209, 138, 0.62), inset 0 0 18px rgba(0, 0, 0, 0.45);
}

.hotspot-layer[hidden] {
  display: none;
}

.eidryn-neverwake { left: 48%; top: 63%; width: clamp(54px, 7vw, 94px); }
.eidryn-blacktide { left: 24%; top: 28%; }
.eidryn-ironwall { left: 20%; top: 47%; }
.eidryn-stormwild { left: 24%; top: 65%; }
.eidryn-ravenwood { left: 48%; top: 26%; }
.eidryn-shadowfen { left: 68%; top: 26%; }
.eidryn-nightmare { left: 86%; top: 23%; width: clamp(54px, 7vw, 94px); }
.eidryn-blackreach { left: 60%; top: 45%; }
.eidryn-ravenwood-reaches { left: 76%; top: 63%; }
.eidryn-ironsea { left: 34%; top: 46%; }
.eidryn-silent-depths { left: 42%; top: 84%; }

.coast { left: 30%; top: 16%; }
.threshold { left: 58%; top: 13%; }
.hollow { left: 22%; top: 34%; }
.bloodwood { left: 45%; top: 34%; }
.thornbound { left: 69%; top: 34%; }
.lostnames { left: 23%; top: 56%; }
.drowned { left: 46%; top: 58%; }
.gloaming { left: 70%; top: 58%; }
.blackroot { left: 20%; top: 80%; }
.buried { left: 47%; top: 82%; }
.nightmare { left: 73%; top: 80%; }

.region-panel {
  padding: clamp(0.9rem, 2vw, 1.25rem);
}

.panel-action {
  border: 1px solid var(--line);
  cursor: pointer;
}

.region-panel h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.fear-rating {
  display: inline-flex;
  margin: 1rem 0;
  border: 1px solid rgba(201, 154, 73, 0.28);
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.45rem 0.7rem;
  font-family: "TBCinzel", Georgia, serif;
  text-transform: uppercase;
}

.known-places {
  margin: 1rem 0;
}

.known-places h3 {
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.known-places ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.known-places li {
  border-top: 1px solid rgba(201, 154, 73, 0.16);
  color: var(--muted);
  padding-top: 0.45rem;
}

.atlas-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: center;
  margin-bottom: 0.85rem;
}

.atlas-note h2 {
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.08;
}

.atlas-note p {
  margin: 0;
}

@media (max-width: 1180px) {
  .map-layout,
  .atlas-note {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .atlas-hero,
  .atlas-shell,
  .atlas-note {
    padding: 1rem 0.85rem;
  }

  .atlas-copy h1 {
    font-size: 2.15rem;
  }

  .atlas-copy p,
  .region-panel p,
  .atlas-note p {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .atlas-note h2 {
    font-size: 1.55rem;
  }

  .map-stage {
    min-height: 360px;
  }

  .region-panel h2 {
    font-size: 1.5rem;
  }

  .map-canvas {
    width: 950px;
  }
}
