.atlas-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 27px 0 22px;
}
.atlas-heading h1 {
  font-size: clamp(40px, 4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 9px 0;
}
.atlas-heading .eyebrow {
  color: #aca6d1;
}
.atlas-heading .eyebrow span {
  color: #657080;
}
.atlas-heading p {
  font-size: 16px;
}
.universe-tabs,
.chart-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #0e1520;
  border: 1px solid #2a3545;
  border-radius: 8px;
  padding: 4px;
}
.universe-tabs a,
.chart-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 13px;
  color: #b9c5d5;
  border: 1px solid transparent;
  background: transparent;
}
.universe-tabs a:hover,
.chart-switch button:hover {
  color: white;
}
.universe-tabs a[aria-current="page"],
.chart-switch button[aria-pressed="true"] {
  color: #dcd4ff;
  background: #29243e;
  border-color: #4e4568;
}
.atlas-workspace {
  background: #0f151f;
  border: 1px solid #2e3847;
  border-radius: 12px;
  overflow: hidden;
}
.sector-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid #2b3442;
}
.sector-strip > span {
  font:
    11px Consolas,
    monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9babc0;
  margin-right: 5px;
}
.sector-strip button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 9px;
  color: #bac4d1;
  white-space: nowrap;
}
.sector-strip button:hover,
.sector-strip button[aria-pressed="true"] {
  background: #202935;
  color: white;
  border-color: #435064;
}
.sector-strip i,
.atlas-kicker i,
.atlas-world-list i {
  background: var(--sector);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.atlas-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(255px, 23vw, 340px);
}
.atlas-chart {
  min-height: 472px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 48% 55%,
    #19162a 8%,
    #0b0d18 56%,
    #090d16 85%
  );
  container-type: inline-size;
}
.atlas-kicker,
.image-caption,
.nexus-origin,
.gate-card small,
.gate-card > div > span {
  font-family: Consolas, monospace;
}
.atlas-kicker {
  color: #c6b9ef;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.chart-toolbar {
  position: relative;
  z-index: 3;
  margin: 21px 22px 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.chart-toolbar h2 {
  font-size: clamp(21px, 3cqw, 29px);
  margin: 5px 0;
}
.chart-toolbar p {
  font-size: 13px;
  color: #b3bed0;
}
.chart-switch {
  pointer-events: auto;
  background: #0d131ddd;
}
.chart-switch button {
  padding: 5px 8px;
  font-size: 12px;
}
.space-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.galaxy-plane {
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(102%, 890px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-9deg) scaleY(0.62);
  mix-blend-mode: screen;
}
.galaxy-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mask-image: radial-gradient(circle, #000 50%, transparent 72%);
  animation: atlas-orbit 340s linear infinite reverse;
}
.stars-far {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 14% 29%, #fff 45%, transparent),
    radial-gradient(1px 1px at 60% 65%, #cac3ef 50%, transparent),
    radial-gradient(1.3px 1.3px at 80% 21%, #8bc6ef 40%, transparent),
    radial-gradient(1px 1px at 40% 85%, #e2e1ff 40%, transparent);
  background-size:
    109px 99px,
    157px 137px,
    211px 173px,
    83px 123px;
  animation: atlas-twinkle 6s ease-in-out infinite alternate;
}
@keyframes atlas-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes atlas-twinkle {
  to {
    opacity: 0.28;
  }
}
.atlas-chart[data-paused="true"] .galaxy-image,
.atlas-chart[data-paused="true"] .stars-far,
.atlas-chart[data-mode="list"] .galaxy-image,
.atlas-chart[data-mode="list"] .stars-far {
  animation-play-state: paused;
}
.plot {
  position: absolute;
  inset: 32px 11px 30px;
}
.sky-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.world-pin,
.outer-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  min-width: 36px;
  min-height: 35px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  z-index: 2;
  color: white;
  padding: 4px;
}
.world-pin i {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--sector);
  background: #fcffff;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--sector) 22%, transparent),
    0 0 15px 2px var(--sector);
}
.world-pin span,
.outer-marker span {
  font:
    600 12px/1.2 "Segoe UI",
    sans-serif;
  white-space: nowrap;
  display: block;
  padding: 3px 6px;
  color: #f1f3ff;
  background: #101324da;
  border: 1px solid #58607679;
  border-radius: 4px;
  text-shadow: 0 1px 2px #000;
}
.world-pin[aria-pressed="true"] i {
  outline: 1px solid var(--sector);
  outline-offset: 6px;
}
.world-pin[aria-pressed="true"] span,
.world-pin:hover span {
  color: var(--sector);
  border-color: var(--sector);
  background: #141a26;
}
.world-pin.muted-pin {
  opacity: 0.22;
}
.outer-marker {
  left: 24%;
  top: 24%;
  color: #a9afc6;
  font-size: 17px;
  gap: 0;
  flex-direction: row;
}
.outer-marker span {
  color: #c1bed2;
  font-weight: 400;
  font-family: Consolas, monospace;
  background: #0d101bc9;
  border: 0;
}
.nexus-origin {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow:
    0 1px 3px #000,
    0 0 6px #070a11;
  color: white;
  pointer-events: none;
}
.nexus-origin i {
  width: 12px;
  height: 12px;
  border: 1px solid #ffffd8;
  transform: rotate(45deg);
  box-shadow: 0 0 10px #f6e8af;
}
.chart-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 10px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(transparent, #0b0e1ad9);
  font:
    11px Consolas,
    monospace;
  color: #bec8d8;
}
.chart-foot > span,
.motion-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chart-foot > span > .icon {
  color: #aaa0d3;
}
.motion-control {
  padding: 4px 8px;
  font:
    12px "Segoe UI",
    sans-serif;
  background: #101520ce;
  color: #ced5e0;
  border-color: #344051;
}
.motion-control span {
  color: #b8abd9;
}
.atlas-world-list {
  display: none;
}
.atlas-chart[data-mode="list"] .plot {
  display: none;
}
.atlas-chart[data-mode="list"] .space-field {
  opacity: 0.15;
}
.atlas-chart[data-mode="list"] .atlas-world-list {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 22px 22px 64px;
}
.atlas-world-list button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  background: #121a28e8;
  border: 1px solid #323c50;
  padding: 12px 10px;
  font-size: 14px;
}
.atlas-world-list button[aria-pressed="true"] {
  border-color: var(--sector);
}
.atlas-world-list small {
  display: block;
  color: #afbbcc;
  font-size: 12px;
}
.atlas-world-list .icon {
  margin-left: auto;
}
.atlas-inspector {
  background: linear-gradient(140deg, #151d29, #10151f);
  border-left: 1px solid #354050;
  min-width: 0;
}
.inspector-art {
  height: clamp(142px, 13vw, 195px);
  position: relative;
  overflow: hidden;
}
.inspector-art img,
.gate-card img,
.gateway-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-caption {
  position: absolute;
  bottom: 9px;
  left: 12px;
  font-size: 10px;
  color: #f0f4f1;
  border: 1px solid #77948b80;
  padding: 3px 6px;
  background: #0e171bd9;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.inspector-body,
.drift-inspector {
  padding: 19px 20px;
}
.inspector-body .atlas-kicker {
  color: var(--sector);
}
.atlas-inspector h2 {
  font-size: 26px;
  margin: 9px 0;
}
.atlas-inspector p {
  font-size: 14px;
}
.world-facts {
  margin: 14px 0 18px;
  border-top: 1px solid #2c3541;
}
.world-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #2c3541;
  padding: 8px 0;
  font-size: 12px;
}
.world-facts dt {
  color: #a3afbd;
}
.world-facts dd {
  margin: 0;
  text-align: right;
  color: #e6ebf3;
}
.world-facts a {
  color: var(--cyan);
}
.gateway-cta {
  width: 100%;
}
.profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  color: #c4cfdc;
  padding-top: 10px;
}
.drift-inspector {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(circle at 50% 0, #28233a, transparent 62%);
}
.drift-inspector .btn {
  margin-top: 18px;
}
.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gate-card {
  overflow: hidden;
  border-radius: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.gate-card:hover {
  border-color: #667084;
}
.gate-card > div {
  height: clamp(138px, 12.4vw, 215px);
  position: relative;
}
.gate-card > div > span {
  position: absolute;
  bottom: 9px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: #0b1321dc;
  border: 1px solid #69778388;
  border-radius: 4px;
  font-size: 11px;
}
.gate-card section {
  padding: 14px 16px 17px;
}
.gate-card small {
  color: var(--sector);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gate-card h3 {
  margin-top: 5px;
}
.gateway-hero {
  position: relative;
  border: 1px solid #394554;
  border-radius: 12px;
  overflow: hidden;
  height: clamp(270px, 32vw, 470px);
  margin-top: 20px;
}
.gateway-hero img {
  object-position: center 56%;
}
.gateway-hero > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(20px, 3.5vw, 56px);
  background: linear-gradient(0deg, #060b14f0, transparent 84%);
}
.gateway-hero h1 {
  font-size: clamp(40px, 4.6vw, 72px);
  letter-spacing: -0.055em;
  margin: 7px 0;
}
.gateway-hero p {
  color: #dce5ec;
}
.gateway-hero p span {
  color: #8d9dac;
  margin: 0 5px;
}
.gateway-details {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.gateway-details .world-facts {
  margin-top: 9px;
}
.gateway-details .world-facts div {
  font-size: 14px;
}
@media (max-width: 1020px) {
  .atlas-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .atlas-console {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .sector-strip {
    padding: 9px;
    gap: 2px;
  }
  .sector-strip button {
    padding: 6px 7px;
  }
  .chart-toolbar {
    margin: 16px 15px 0;
  }
  .chart-switch button {
    padding: 5px;
  }
  .atlas-chart {
    min-height: 450px;
  }
}
@media (max-width: 800px) {
  .atlas-console {
    grid-template-columns: 1fr;
  }
  .atlas-chart {
    min-height: 440px;
  }
  .atlas-inspector {
    border-left: 0;
    border-top: 1px solid #354050;
    display: grid;
    grid-template-columns: 36% 1fr;
  }
  .inspector-art {
    height: 100%;
    min-height: 230px;
  }
  .inspector-body {
    padding: 16px 20px;
  }
  .inspector-body .world-facts {
    margin: 8px 0 12px;
  }
  .drift-inspector {
    display: block;
  }
  .gate-grid {
    gap: 10px;
  }
  .gate-card section {
    padding: 12px;
  }
  .gate-card h3 {
    font-size: 17px;
  }
}
@media (max-width: 550px) {
  .atlas-heading {
    gap: 13px;
    margin: 20px 0 14px;
  }
  .atlas-heading h1 {
    font-size: 43px;
  }
  .universe-tabs {
    max-width: 100%;
    gap: 1px;
  }
  .universe-tabs a {
    font-size: 12px;
    padding: 7px 6px;
    gap: 4px;
  }
  .universe-tabs .icon {
    width: 14px;
  }
  .sector-strip {
    flex-wrap: nowrap;
    overflow: auto;
    scrollbar-width: thin;
  }
  .sector-strip > span {
    display: none;
  }
  .atlas-chart {
    min-height: 400px;
  }
  .chart-toolbar {
    margin: 13px 11px 0;
  }
  .chart-toolbar h2 {
    font-size: 21px;
  }
  .chart-toolbar p {
    font-size: 12px;
    max-width: 185px;
  }
  .chart-switch .icon {
    display: none;
  }
  .plot {
    inset: 69px 4px 35px;
  }
  .space-field {
    top: 27px;
  }
  .galaxy-plane {
    width: 132%;
    transform: translate(-50%, -50%) rotate(-13deg) scaleY(0.83);
  }
  .world-pin span,
  .outer-marker span {
    font-size: 10px;
    padding: 3px 4px;
  }
  .world-pin i {
    width: 9px;
    height: 9px;
  }
  .outer-marker {
    top: 9%;
  }
  .nexus-origin {
    font-size: 8px;
  }
  .atlas-chart[data-mode="list"] .atlas-world-list {
    margin: 18px 10px 48px;
    gap: 6px;
  }
  .atlas-world-list button {
    font-size: 12px;
    gap: 7px;
  }
  .atlas-world-list small {
    font-size: 10px;
  }
  .atlas-world-list .icon {
    display: none;
  }
  .atlas-inspector {
    grid-template-columns: 1fr;
  }
  .inspector-art {
    min-height: 0;
    height: 145px;
  }
  .inspector-body {
    padding: 16px;
  }
  .gate-grid,
  .gateway-details {
    grid-template-columns: 1fr;
  }
  .gate-card > div {
    height: 175px;
  }
  .gateway-hero {
    height: 285px;
  }
  .chart-foot {
    padding: 8px 12px;
  }
}
.profile-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.landmark-source {
  margin-top: 16px;
}
.official-destinations {
  margin-top: 20px;
}
.official-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 9px;
  margin-top: 17px;
}
.official-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px;
  background: #101923;
}
.official-links a:hover {
  border-color: #58827c;
  background: #15242b;
}
.official-links .icon:first-child {
  color: var(--cyan);
}
.official-links .icon:last-child {
  margin-left: auto;
  color: var(--muted);
}
.official-links strong,
.official-links small {
  display: block;
}
.official-links strong {
  font-size: 14px;
}
.official-links small {
  color: var(--muted);
  margin-top: 3px;
}
@media (max-width: 680px) {
  .gateway-hero.gateway-panorama {
    height: auto;
    background: var(--panel);
  }
  .gateway-panorama img {
    display: block;
    height: auto;
  }
  .gateway-panorama > div {
    position: static;
    padding: 18px;
    background: none;
  }
}
.profile-content .profile-tools .btn {
  margin: 0;
}
.atlas-return {
  display: none;
}
@media (max-width: 800px) {
  .atlas-return {
    display: block;
    margin: 12px auto 0;
    padding: 6px 10px;
    font-size: 13px;
    color: #b7c2d3;
    background: transparent;
    border-color: transparent;
  }
}
@media (max-width: 550px) {
  .outer-marker {
    left: 18%;
    top: 20%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-chart[data-paused="true"] .galaxy-image,
  .atlas-chart[data-paused="true"] .stars-far {
    animation: none;
  }
}
