:root {
  --atlas-cyan: #75d9ff;
  --atlas-red: #ef4967;
  --atlas-line: rgba(143, 216, 245, 0.18);
}

.city-selector-screen {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 57% 48%,
      rgba(26, 92, 130, 0.21),
      transparent 35%
    ),
    radial-gradient(
      circle at 92% 12%,
      rgba(239, 73, 103, 0.09),
      transparent 25%
    ),
    #050b14;
}

.city-selector-screen::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.34) 0 0.7px,
      transparent 0.8px
    ),
    linear-gradient(rgba(117, 217, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 217, 255, 0.026) 1px, transparent 1px);
  background-size:
    41px 41px,
    72px 72px,
    72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 94%);
  opacity: 0.62;
  pointer-events: none;
}

body.deck-live .city-selector-screen {
  padding: 0;
}

.city-selector-screen .screen-inner {
  width: 100%;
  height: 100vh;
  margin: 0;
}

.city-selector-screen .screen-inner > .eyebrow,
.city-selector-screen .screen-inner > h2 {
  position: absolute;
  z-index: 12;
  left: max(68px, calc((100vw - 1500px) / 2));
  width: min(520px, 38vw);
}

.city-selector-screen .screen-inner > .eyebrow {
  top: calc(var(--header-height) + 54px);
  color: rgba(255, 255, 255, 0.5);
}

.city-selector-screen .screen-inner > h2 {
  top: calc(var(--header-height) + 86px);
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5.4vw, 84px);
  line-height: 1.02;
}

.city-selector-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.atlas-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 58%;
  width: clamp(1220px, 118vh, 1480px);
  height: clamp(1220px, 118vh, 1480px);
  transform: translate(-50%, -50%);
}

.atlas-orbit::before {
  position: absolute;
  z-index: -1;
  inset: 15%;
  border-radius: 50%;
  background: rgba(39, 135, 183, 0.11);
  box-shadow:
    0 0 100px rgba(50, 177, 229, 0.18),
    0 0 220px rgba(18, 75, 114, 0.22);
  content: "";
  filter: blur(20px);
}

.atlas-orbit canvas,
.atlas-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-orbit canvas {
  touch-action: none;
}

.atlas-orbit-ring {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 30%;
  border: 1px solid rgba(117, 217, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.atlas-orbit-ring-a {
  transform: translate(-50%, -50%) rotate(18deg);
}

.atlas-orbit-ring-b {
  width: 34%;
  height: 86%;
  transform: translate(-50%, -50%) rotate(-20deg);
  border-color: rgba(239, 73, 103, 0.16);
}

.atlas-pins {
  z-index: 6;
  pointer-events: none;
}

.atlas-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(4, 14, 25, 0.76);
  box-shadow: 0 0 0 1px rgba(117, 217, 255, 0.2);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  pointer-events: auto;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.atlas-pin i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--atlas-cyan);
  box-shadow: 0 0 14px var(--atlas-cyan);
}

.atlas-pin:hover,
.atlas-pin.is-selected {
  background: rgba(239, 73, 103, 0.94);
  box-shadow:
    0 0 0 5px rgba(239, 73, 103, 0.13),
    0 0 30px rgba(239, 73, 103, 0.34);
  color: #fff;
}

.atlas-pin.is-selected i {
  background: #fff;
  box-shadow: 0 0 12px #fff;
}

.atlas-map-caption {
  position: absolute;
  z-index: 8;
  right: 13%;
  bottom: 13%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.atlas-map-caption span {
  color: var(--atlas-red);
}

.atlas-map-caption b {
  color: #fff;
  font-family: "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: 0;
}

.atlas-shortlist {
  position: absolute;
  z-index: 12;
  left: max(68px, calc((100vw - 1500px) / 2));
  bottom: 58px;
  width: min(500px, 40vw);
}

.atlas-shortlist > p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.atlas-shortlist > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--atlas-line);
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-city-chip {
  position: relative;
  display: grid;
  min-height: 82px;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--atlas-line);
  background: rgba(4, 14, 25, 0.42);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-align: left;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.atlas-city-chip:last-child {
  border-right: 0;
}

.atlas-city-chip span {
  position: absolute;
  top: 6px;
  left: 8px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--sans);
  font-size: 8px;
}

.atlas-city-chip b {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--atlas-red);
  font-family: "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
}

.atlas-city-chip strong,
.atlas-city-chip small {
  grid-column: 2;
}

.atlas-city-chip strong {
  font-size: 13px;
}

.atlas-city-chip small {
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--sans);
  font-size: 9px;
}

.atlas-city-chip:hover,
.atlas-city-chip.is-selected {
  background: rgba(239, 73, 103, 0.13);
  color: #fff;
}

.atlas-city-chip.is-selected::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--atlas-red);
  content: "";
}

.atlas-city-panel {
  position: absolute;
  z-index: 14;
  top: 50%;
  right: max(54px, calc((100vw - 1500px) / 2));
  width: min(360px, 28vw);
  padding: 24px 26px 22px;
  border: 1px solid rgba(117, 217, 255, 0.24);
  background: linear-gradient(
    145deg,
    rgba(16, 39, 65, 0.94),
    rgba(7, 19, 34, 0.9)
  );
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-42%);
  backdrop-filter: blur(16px);
}

.atlas-city-panel::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 88px;
  height: 2px;
  background: var(--atlas-red);
  content: "";
}

.atlas-city-heading {
  display: grid;
  grid-template-columns: 28px 78px 1fr;
  align-items: center;
}

.atlas-city-heading > span {
  align-self: start;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--sans);
  font-size: 9px;
}

.atlas-city-heading > strong {
  color: var(--atlas-red);
  font-family: "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}

.atlas-city-heading p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.atlas-city-heading p b {
  color: #fff;
  font-size: 25px;
}

.atlas-city-heading p small {
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--sans);
  font-size: 10px;
}

.atlas-city-stamp {
  margin: 22px 0 8px;
  color: var(--atlas-cyan);
  font-size: 22px;
  line-height: 1.35;
}

.atlas-city-story {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.atlas-city-facts {
  margin: 18px 0;
  border-top: 1px solid var(--atlas-line);
}

.atlas-city-facts > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-city-facts dt {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
  font-size: 10px;
}

.atlas-city-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.5;
}

.atlas-action-primary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--atlas-red);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.atlas-action-primary:hover {
  background: #ff5874;
  transform: translateY(-2px);
}

.atlas-city-hint {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-height: 760px) and (min-width: 821px) {
  .city-selector-screen .screen-inner > .eyebrow {
    top: calc(var(--header-height) + 24px);
  }

  .city-selector-screen .screen-inner > h2 {
    top: calc(var(--header-height) + 50px);
    font-size: clamp(42px, 5.5vw, 66px);
  }

  .atlas-orbit {
    left: 58%;
    width: 1160px;
    height: 1160px;
  }

  .atlas-city-panel {
    width: 320px;
    padding: 18px 20px 16px;
    transform: translateY(-44%);
  }

  .atlas-city-stamp {
    margin-top: 14px;
    font-size: 18px;
  }

  .atlas-city-story {
    font-size: 11.5px;
  }

  .atlas-city-facts {
    margin: 12px 0;
  }

  .atlas-city-facts > div {
    padding: 8px 0;
  }

  .atlas-shortlist {
    bottom: 34px;
  }

  .atlas-city-chip {
    min-height: 66px;
  }
}

@media (max-width: 980px) {
  .city-selector-screen {
    min-height: 1020px;
  }

  .city-selector-screen .screen-inner {
    height: auto;
    min-height: 1020px;
    padding: 100px 24px 48px;
  }

  .city-selector-screen .screen-inner > .eyebrow,
  .city-selector-screen .screen-inner > h2 {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .city-selector-screen .screen-inner > h2 {
    margin-bottom: 0;
    font-size: clamp(42px, 13vw, 62px);
  }

  .city-selector-shell {
    position: relative;
    min-height: 790px;
    overflow: visible;
  }

  .atlas-orbit {
    top: 210px;
    left: 50%;
    width: 760px;
    height: 760px;
  }

  .atlas-shortlist {
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
  }

  .atlas-city-chip {
    min-height: 72px;
    padding-inline: 8px;
  }

  .atlas-city-chip b {
    font-size: 24px;
  }

  .atlas-city-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    transform: none;
  }

  .atlas-map-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-action-primary,
  .atlas-city-chip,
  .atlas-pin {
    transition: none;
  }
}
