#map-system-open { border-left: 1px solid #9d825e; background: #3e3325; color: #ffe2b2; font-weight: 650; white-space: nowrap; }
#map-system-open:hover { background: #584631; }
#map-system-open span { margin-inline-start: .18rem; }
#map-stage:has(#system-view:not([hidden])) { cursor: auto; touch-action: auto; }
#map-stage:has(#system-view:not([hidden])) > :not(#system-view):not(#map-frame),
#map-stage:has(#system-view:not([hidden]):not([data-flight])) > #map-frame { visibility: hidden; }
#system-load {
  position: absolute;
  bottom: 4.5rem;
  right: 1.2rem;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: .48rem .72rem;
  border: 1px solid #796753;
  background: #1b2426;
  color: #eed6a9;
  font: .72rem/1.3 var(--mono);
}

#system-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  isolation: isolate;
  color: #eaf2ec;
  background: #091317;
}
.system-observation {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
  padding: clamp(.85rem, 2.3vw, 2.1rem);
  isolation: isolate;
  background:
    linear-gradient(110deg, #06080c70, #080b1470 47%, #090e19a0),
    url('/releases/diaspora-20261202-ba87386c/art/vale-dust.webp') center 54% / cover;
}
.system-observation::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(0deg, #081215e0, transparent 26%);
}
#system-3d, #system-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#system-colony { pointer-events: auto; min-height: 32px; margin-top: .5rem; padding: .25rem .6rem;
  border-color: #a68864a3; background: #221f23e6; color: #ffe5ba; }
#system-3d { z-index: 1; cursor: grab; touch-action: none; }
#system-3d:active { cursor: grabbing; }
#system-3d:focus-visible { outline-offset: -3px; }
#system-labels { z-index: 2; pointer-events: none; }
#system-labels button {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 33px;
  padding: .25rem .46rem;
  border: 1px solid #5e796b;
  border-radius: 2px;
  background: #102225de;
  color: #d8e7dd;
  font: 650 .74rem/1.15 var(--display);
  white-space: nowrap;
  pointer-events: auto;
}
#system-labels button:hover { border-color: #ecc48c; background: #363326; color: #ffe5bb; }
#system-star-aura, #system-planet-aura {
  position: absolute;
  width: 100px;
  height: 100px;
  left: 0;
  top: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
#system-star-aura { background: radial-gradient(circle, #fff4cd 0, #fbb455bd 22%, #f59c4855 36%, #ee773429 48%, #ee773400 71%); }
#system-planet-aura { background: radial-gradient(circle closest-side, transparent 77%, color-mix(in srgb, var(--limb) 43%, transparent) 86%, transparent 100%); }
.system-view-header, .body-profile, .system-camera-tools { position: relative; z-index: 4; pointer-events: none; }
.system-view-header { display: flex; justify-content: space-between; gap: .7rem; align-items: start; }
.system-view-header button, .system-camera-tools button {
  pointer-events: auto;
  border: 1px solid #6d847e9c;
  border-radius: 2px;
  background: #19292bd9;
  color: #e0eee4;
  font-size: .87rem;
  white-space: nowrap;
}
.system-view-header button:hover, .system-camera-tools button:hover { background: #354a44; }
#system-back span { color: #ecc48c; margin-inline-end: .34rem; }
#system-view-title { color: #ecd0a9; font: 600 .72rem/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.body-profile { max-width: 70%; text-shadow: 0 3px 10px #050b0d, 0 0 20px #050b0d; }
#system-body-title { margin: .26rem 0 .47rem; font: 750 clamp(2rem, 4.1vw, 4rem)/.94 var(--display); letter-spacing: -.029em; }
.body-profile p { margin: 0; }
#system-body-class { color: #dce8df; font-size: clamp(.83rem, 1.45vw, 1rem); }
#system-body-intel { margin-top: .25rem; color: #a8d9cb; font: .76rem/1.35 var(--mono); }
.system-camera-tools { position: absolute; right: clamp(.85rem, 2.3vw, 2.1rem); bottom: clamp(.85rem, 2.3vw, 2.1rem); display: grid; justify-items: end; gap: .43rem; }
.system-camera-tools button { width: 40px; min-height: 39px; padding: .26rem; font-size: 1.14rem; }
#system-gestures { margin: 0; max-width: 14rem; color: #c9ddd5; text-align: right; font: .7rem/1.35 var(--mono); text-shadow: 0 2px 8px #050b0d; }
#system-bodies {
  display: flex;
  gap: .38rem;
  overflow: auto hidden;
  padding: .55rem .72rem .65rem;
  border-top: 1px solid #577269;
  background: #142124;
  scrollbar-color: #587666 #101a1f;
  scrollbar-width: thin;
}
#system-bodies button {
  flex: 0 0 clamp(4.7rem, 10cqw, 6.4rem);
  display: grid;
  justify-items: center;
  align-items: center;
  gap: .16rem;
  padding: .26rem .22rem .42rem;
  min-width: 0;
  min-height: 62px;
  border: 1px solid #4b625a;
  border-radius: 2px;
  color: #cbdbd5;
  background: #18282a;
  font: 600 .73rem/1.2 var(--display);
  text-align: center;
}
#system-bodies button[aria-pressed='true'] { color: #ffe1b7; border-color: #d1a66c; background: #3b3128; }
#system-bodies button:hover { background: #30433e; }
#system-bodies button[aria-pressed='true']:hover { background: #4f402f; }
#system-bodies button:focus-visible { outline-offset: -3px; }
.body-preview {
  width: 3.2rem;
  height: 3.2rem;
  background: var(--planet) center / contain no-repeat;

}
.body-preview[data-size='0'] { background-size: 77%; }
.body-preview[data-size='1'] { background-size: 86%; }

@media (max-width: 680px) {
  #map-stage .map-legend { bottom: 3.75rem; }
  .system-observation { padding: .75rem; }
  .body-profile { max-width: 66%; }
  #system-body-title { font-size: clamp(1.55rem, 8vw, 2.7rem); }
  #system-body-intel { font-size: .66rem; }
  #system-gestures { max-width: 7rem; font-size: .58rem; }
  #system-labels button { padding-inline: .32rem; font-size: .66rem; }
  #system-bodies { padding-inline: .55rem; }
}
