/* 2026-11-19 银河星图底部缩放条
   - 删除「选择一个轨道槽位」提示框
   - 加号/减号/进度条换成 36_任务 旁的 Galaxy 素材
   - 加号上方加银河归位键，点击回到银河总览
*/
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .star-map-selection {
  display: none !important;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-command-dock,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell > .star-map-command-dock {
  gap: 4px;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 58px;
  grid-template-rows: 40px 40px;
  gap: 4px 8px;
  align-items: center;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control.is-constellation,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control.is-constellation {
  grid-template-rows: 40px;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control > button,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control > button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  color: inherit;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control > button img,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control > button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 140ms ease, transform 140ms ease;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control > button:hover img,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control > button:hover img {
  filter: brightness(1.12) drop-shadow(0 0 6px rgba(94, 231, 239, .35));
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control > button:active img,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control > button:active img {
  transform: scale(.94);
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control > button:disabled,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control > button:disabled {
  opacity: .34;
  filter: grayscale(.7);
}

.star-map-zoom-home,
.star-map-zoom-plus,
.star-map-zoom-minus {
  width: 100%;
  height: 100%;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-home,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-home {
  grid-column: 1;
  grid-row: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(94, 231, 239, .56);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(12, 46, 56, .98), rgba(4, 18, 24, .98));
  box-shadow: 0 0 14px rgba(64, 242, 255, .18), inset 0 0 12px rgba(64, 242, 255, .1);
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-home img,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-home img {
  width: 38px;
  height: 38px;
  margin: auto;
  filter: brightness(1.55) saturate(1.45) drop-shadow(0 0 5px rgba(90, 240, 255, .55));
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-home:hover img,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-home:hover img {
  filter: brightness(1.75) saturate(1.5) drop-shadow(0 0 7px rgba(90, 240, 255, .7));
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-plus,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-plus {
  grid-column: 1;
  grid-row: 2;
  width: 40px;
  height: 40px;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control.is-constellation .star-map-zoom-plus,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control.is-constellation .star-map-zoom-plus {
  grid-row: 1;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-track,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-track {
  position: relative;
  display: block;
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  height: 22px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: url("../../../assets/galaxy/zoom-bar-track.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  overflow: hidden;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control.is-constellation .star-map-zoom-track,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control.is-constellation .star-map-zoom-track {
  grid-row: 1;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-track b,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-track b {
  display: block;
  width: var(--zoom-progress, 0%);
  height: 100%;
  border-radius: 4px 0 0 4px;
  background: url("../../../assets/galaxy/zoom-bar-fill.webp") left center / 100% 100% no-repeat;
  box-shadow: 0 0 10px rgba(64, 150, 255, .35);
  transition: width 180ms ease;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-minus,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-minus {
  grid-column: 3;
  grid-row: 2;
  width: 58px;
  height: 24px;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control.is-constellation .star-map-zoom-minus,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control.is-constellation .star-map-zoom-minus {
  grid-row: 1;
}

@media (max-width: 380px) {
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-control,
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-control {
    grid-template-columns: 40px minmax(0, 1fr) 52px;
    gap: 4px 6px;
  }
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-home,
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-home,
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-plus,
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-plus {
    width: 40px;
    height: 40px;
  }
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-minus,
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-minus {
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .star-map-zoom-track b {
    transition: none;
  }
}

/* 2026-11-19 银河坐标输入框重做：玻璃底、TerraNova 三角、图集圆钮 */
.coordinate-modal {
  background:
    radial-gradient(circle at 50% 42%, rgba(12, 42, 52, .18), transparent 48%),
    rgba(0, 7, 11, .26);
  -webkit-backdrop-filter: blur(3px) saturate(1.05);
  backdrop-filter: blur(3px) saturate(1.05);
}

.coordinate-dialog {
  position: relative;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(125, 246, 255, .34);
  border-radius: 14px;
  padding: 18px 16px 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(64, 242, 255, .16), transparent 42%),
    linear-gradient(180deg, rgba(8, 30, 38, .52), rgba(2, 12, 18, .4));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .34),
    inset 0 0 32px rgba(64, 242, 255, .07),
    0 0 24px rgba(64, 242, 255, .08);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  text-align: center;
}

.coordinate-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent);
  pointer-events: none;
}

body.coordinate-modal-open .ucraft-global-chat {
  display: none !important;
}

.coordinate-dialog h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #ffd96a;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

.coordinate-dialog p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: rgba(226, 246, 250, .68);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

.coordinate-wheels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}

.coordinate-wheels label {
  display: grid;
  justify-items: stretch;
  gap: 6px;
  min-width: 0;
  color: #8ff6ff;
  font-size: 11px;
  font-weight: 900;
}

.coordinate-wheels label > span {
  color: #9af8ff;
  font-size: 10px;
  letter-spacing: .12em;
  text-shadow: 0 0 10px rgba(64, 242, 255, .28);
}

.coordinate-wheels button {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent url("../../../assets/galaxy/coordinate-btn.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.coordinate-wheels button:hover,
.coordinate-wheels button:focus-visible {
  background-image: url("../../../assets/galaxy/coordinate-btn-active.webp");
  filter: brightness(1.08) drop-shadow(0 0 8px rgba(64, 242, 255, .24));
  outline: none;
}

.coordinate-wheels button:active {
  transform: scale(.94);
}

.coordinate-wheels button img {
  display: block;
  width: 22px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(94, 231, 239, .45));
  pointer-events: none;
}

.coordinate-wheels input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(125, 246, 255, .28);
  border-radius: 9px;
  padding: 0 2px;
  background:
    linear-gradient(180deg, rgba(4, 24, 30, .42), rgba(2, 12, 18, .36));
  box-shadow: inset 0 0 18px rgba(64, 242, 255, .06), 0 1px 0 rgba(255, 255, 255, .04);
  color: #f7ffff;
  font-family: var(--font-data, inherit);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.coordinate-wheels input::-webkit-outer-spin-button,
.coordinate-wheels input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.coordinate-wheels input:focus {
  border-color: rgba(125, 246, 255, .65);
  box-shadow: inset 0 0 20px rgba(64, 242, 255, .12), 0 0 14px rgba(64, 242, 255, .14);
}

.coordinate-move,
.coordinate-cancel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 168px;
  min-height: 42px;
  margin: 9px auto 0;
  border: 1px solid rgba(125, 246, 255, .28);
  border-radius: 8px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(18, 56, 68, .5), rgba(4, 20, 26, .42));
  box-shadow: inset 0 0 14px rgba(64, 242, 255, .06);
  color: #f5ffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.coordinate-move {
  border-color: rgba(94, 231, 239, .62);
  box-shadow: inset 0 0 16px rgba(64, 242, 255, .1), 0 0 14px rgba(64, 242, 255, .08);
}

.coordinate-cancel {
  color: rgba(230, 246, 249, .72);
  background: rgba(6, 22, 28, .3);
}

.coordinate-move:hover,
.coordinate-move:focus-visible,
.coordinate-cancel:hover,
.coordinate-cancel:focus-visible {
  border-color: rgba(125, 246, 255, .72);
  filter: brightness(1.08);
  outline: none;
}

/* 缩放条本身不背底板：只留加号、减号、滑轨和罗盘键自己的面。 */
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map {
  position: relative;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map > .star-map-command-dock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 40;
  width: auto;
  max-height: calc(100% - 20px);
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  overflow: visible;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell > .star-map-command-dock {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-track,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-track {
  overflow: visible;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-thumb,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-thumb {
  position: absolute;
  top: 50%;
  left: clamp(4%, var(--zoom-progress, 0%), 96%);
  z-index: 3;
  display: block;
  width: 32px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -100%);
  cursor: grab;
  touch-action: none;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-thumb img,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-thumb img {
  display: block;
  width: 24px;
  height: 36px;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(64, 242, 255, .52));
  pointer-events: none;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-thumb:active,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-thumb:active {
  cursor: grabbing;
}

body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .solar-orbit-map .star-map-zoom-thumb:focus-visible,
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-constellation-shell .star-map-zoom-thumb:focus-visible {
  outline: none;
  border-radius: 50%;
}

/* 银河系总览：每颗太阳系只剩一个小白点，短直线成网；据点被联盟拿下时点会亮联盟色。 */
.galaxy-camera-controls {
  display: none !important;
}

.galaxy-constellation-map {
  background: radial-gradient(circle at 50% 45%, #071122 0%, #030711 65%, #02040a 100%) !important;
}
.galaxy-constellation-nebula {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../../../assets/galaxy/constellation-nebula.webp") center / cover no-repeat;
  opacity: .12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.galaxy-constellation-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.galaxy-constellation-lines line {
  stroke: rgba(72, 190, 255, .6);
  stroke-width: 1.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(52, 170, 255, .48));
}

.galaxy-map-canvas .solar-system-node.is-dot {
  z-index: 3;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  transform: translate(-50%, -50%);
}

.galaxy-map-canvas .solar-system-node.is-dot .system-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--node-color, #f4feff) 26%, transparent), transparent 68%);
  opacity: .55;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.galaxy-map-canvas .solar-system-node.is-dot .system-dot {
  position: relative;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--node-color, #f4feff);
  box-shadow:
    0 0 5px var(--node-color, #f4feff),
    0 0 12px color-mix(in srgb, var(--node-color, #f4feff) 55%, transparent);
  transition: width 160ms ease, height 160ms ease, box-shadow 160ms ease;
  pointer-events: none;
}

.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-dot {
  width: 7px;
  height: 7px;
  box-shadow:
    0 0 7px var(--node-color, #65f0c5),
    0 0 18px color-mix(in srgb, var(--node-color, #65f0c5) 70%, transparent);
}

.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo {
  width: 46px;
  height: 46px;
  border: 0;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--node-color, #65f0c5) 52%, transparent) 0%,
    color-mix(in srgb, var(--node-color, #65f0c5) 30%, transparent) 38%,
    transparent 100%);
  box-shadow:
    0 0 22px color-mix(in srgb, var(--node-color, #65f0c5) 42%, transparent),
    0 0 40px color-mix(in srgb, var(--node-color, #65f0c5) 20%, transparent);
  filter: blur(.8px);
  opacity: .95;
  animation: captured-halo-pulse 3.2s ease-in-out infinite;
  will-change: opacity, transform;
}

.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--node-color, #65f0c5) 78%, white 22%) 0 20%,
    transparent 100%);
  filter: blur(3px);
  opacity: .9;
  pointer-events: none;
}

.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo::after {
  content: "";
  position: absolute;
  inset: -10px;
  background:
    linear-gradient(0deg, transparent 48.7%, color-mix(in srgb, var(--node-color, #65f0c5) 42%, transparent) 49.4% 50.6%, transparent 51.3%),
    linear-gradient(90deg, transparent 48.7%, color-mix(in srgb, var(--node-color, #65f0c5) 42%, transparent) 49.4% 50.6%, transparent 51.3%),
    linear-gradient(45deg, transparent 48.7%, color-mix(in srgb, var(--node-color, #65f0c5) 28%, transparent) 49.4% 50.6%, transparent 51.3%),
    linear-gradient(135deg, transparent 48.7%, color-mix(in srgb, var(--node-color, #65f0c5) 28%, transparent) 49.4% 50.6%, transparent 51.3%);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .9) 30%, transparent 78%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .9) 30%, transparent 78%);
  filter: blur(1.6px);
  opacity: .62;
  animation: captured-halo-rays 14s linear infinite;
  pointer-events: none;
}

.galaxy-map-canvas .solar-system-node.is-dot.active .system-dot,
.galaxy-map-canvas .solar-system-node.is-dot.is-selected .system-dot {
  width: 7px;
  height: 7px;
}

.galaxy-map-canvas .solar-system-node.is-dot.is-selected .system-halo {
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--node-color, #f4feff) 58%, transparent);
  opacity: 1;
}

.galaxy-map-canvas .solar-system-node.is-dot.is-selected::after {
  content: none !important;
  display: none !important;
}

.galaxy-map-canvas .solar-system-node.is-dot .system-star {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 14px;
  height: 14px;
  background: var(--node-color, #f4feff);
  -webkit-mask: url("../../../assets/galaxy/system-star.webp") center / contain no-repeat;
  mask: url("../../../assets/galaxy/system-star.webp") center / contain no-repeat;
  transform: translate(-50%, -50%);
  opacity: .55;
  pointer-events: none;
}

.galaxy-map-canvas .solar-system-node.is-dot:hover .system-dot {
  width: 7px;
  height: 7px;
}

.galaxy-map-canvas .solar-system-node.is-dot:focus-visible {
  outline: 1px solid rgba(125, 246, 255, .75);
  outline-offset: 3px;
}

@keyframes captured-halo-pulse {
  0%, 100% { opacity: .72; transform: translate(-50%, -50%) scale(.94); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes captured-halo-rays {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo,
  .galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo::after {
    animation: none;
  }
}

/* 银河目录胶囊：只压上下高度，宽度保持不变。 */
body[data-active-screen="galaxy"][data-galaxy-tab="LIST"] .galaxy-row {
  min-height: 44px !important;
  border-radius: 22px !important;
}

@media (min-width: 560px) and (max-width: 1024px), (min-width: 560px) and (pointer: coarse) {
  body[data-active-screen="galaxy"][data-galaxy-tab="LIST"] .galaxy-row {
    min-height: 58px !important;
    border-radius: 29px !important;
  }
}

/* 2026-11-25：银河切换不再占用银河页状态栏；第二银河通过坐标弹窗的银河字段进入。
   原来的“目录/收藏/星图”三键必须保持原样，这里不再生成任何额外行。 */
body[data-active-screen="galaxy"][data-galaxy-tab="STARMAP"] .galaxy-screen.active {
  grid-template-rows: auto auto auto minmax(0, 1fr) !important;
}

/* ==========================================================================
   2026-12-02 · 群星风格双银河星图：有机分支航道 + 光芒发散 + 跨银河紫光星门
   ========================================================================== */
.galaxy-sector-watermark {
  position: absolute;
  left: var(--gx);
  top: var(--gy);
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
  z-index: 0;
  opacity: 0.2;
}
.galaxy-sector-watermark strong {
  display: block;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0.24em;
  color: #a8e4ff;
  text-shadow: 0 0 28px rgba(72, 184, 255, 0.45);
  white-space: nowrap;
}
.galaxy-sector-watermark span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  letter-spacing: 0.34em;
  color: #7cc4e6;
}

.galaxy-constellation-lines line.hyperlane-branch {
  stroke: rgba(96, 190, 238, 0.42);
  stroke-width: 0.95;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: none;
}
.galaxy-constellation-lines line.hyperlane-loop {
  stroke: rgba(84, 172, 224, 0.24);
  stroke-width: 0.85;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.galaxy-constellation-lines line.galaxy-bridge-glow {
  stroke: rgba(176, 56, 245, 0.44);
  stroke-width: 4.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: blur(2.2px);
}
.galaxy-constellation-lines line.galaxy-bridge-core {
  stroke: rgba(218, 128, 255, 0.86);
  stroke-width: 1.35;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(192, 68, 255, 0.85));
}

/* 未占领普通星系：极简清透小白星点 + 分支枢纽细环（无杂乱彩色圆斑） */
.galaxy-map-canvas .solar-system-node.is-dot:not(.is-captured):not(.is-intergalactic-gate):not(.active) .system-halo {
  display: none;
}
.galaxy-map-canvas .solar-system-node.is-dot:not(.is-captured):not(.is-intergalactic-gate):not(.active) .system-dot {
  width: 4px;
  height: 4px;
  background: #dff4ff;
  box-shadow: 0 0 4px rgba(170, 226, 255, 0.65);
}
.galaxy-map-canvas .solar-system-node.is-dot.is-branch-hub:not(.is-captured):not(.is-intergalactic-gate):not(.active) .system-dot {
  width: 6.5px;
  height: 6.5px;
  background: #0a1b2b;
  border: 1.5px solid #9be8ff;
  box-shadow: 0 0 6px rgba(114, 224, 255, 0.72);
}

/* 仅联盟占领据点的太阳系：大半径柔光辐射光晕（叠加融合形成联盟疆域光斑，贴合参考图） */
.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo {
  width: 220px;
  height: 220px;
  opacity: 0.96;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle,
      color-mix(in srgb, var(--node-color, #42b8ff) 92%, white 22%) 0%,
      color-mix(in srgb, var(--node-color, #42b8ff) 64%, transparent) 18%,
      color-mix(in srgb, var(--node-color, #42b8ff) 30%, transparent) 42%,
      color-mix(in srgb, var(--node-color, #42b8ff) 10%, transparent) 66%,
      transparent 84%);
  box-shadow: none;
  filter: blur(5px);
  animation: captured-halo-pulse 4.6s ease-in-out infinite;
}
.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    #ffffff 0%,
    color-mix(in srgb, var(--node-color, #42b8ff) 92%, white 18%) 26%,
    color-mix(in srgb, var(--node-color, #42b8ff) 46%, transparent) 60%,
    transparent 100%);
  filter: blur(3px);
  opacity: 0.95;
}
.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-halo::after {
  content: none;
  display: none;
}
.galaxy-map-canvas .solar-system-node.is-dot.is-captured .system-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--node-color, #42b8ff) 85%, white 15%);
  box-shadow: 0 0 10px #ffffff, 0 0 24px var(--node-color, #42b8ff);
}

/* 跨银河星门节点：纯净紫芒发散（参考图 2 中的紫色星门光点） */
.galaxy-map-canvas .solar-system-node.is-dot.is-intergalactic-gate .system-halo {
  width: 96px;
  height: 96px;
  opacity: 0.95;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    #fff0ff 0%,
    rgba(218, 72, 255, 0.88) 18%,
    rgba(164, 38, 240, 0.36) 46%,
    transparent 78%);
  box-shadow: none;
  filter: blur(3px);
}
.galaxy-map-canvas .solar-system-node.is-dot.is-intergalactic-gate .system-dot {
  width: 8px;
  height: 8px;
  background: #ffe8ff;
  box-shadow: 0 0 10px #f08cff, 0 0 22px #b636ff;
}

/* 当前所在太阳系：参考图 3/4 的明亮银白星芒 + 柔和透镜光环 */
.galaxy-map-canvas .solar-system-node.is-dot.active .system-halo {
  width: 148px;
  height: 148px;
  opacity: 0.96;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    #ffffff 0%,
    rgba(210, 228, 255, 0.82) 12%,
    rgba(134, 152, 245, 0.34) 34%,
    rgba(88, 128, 220, 0.1) 62%,
    transparent 84%);
  filter: blur(4px);
}
.galaxy-map-canvas .solar-system-node.is-dot.active .system-dot {
  width: 9px;
  height: 9px;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 26px rgba(186, 218, 255, 0.95);
}
.system-lens-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 1.5px solid rgba(160, 206, 255, 0.36);
  box-shadow:
    0 0 0 24px rgba(140, 118, 255, 0.08),
    inset 0 0 22px rgba(138, 216, 255, 0.24);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: captured-halo-pulse 4s ease-in-out infinite;
}

.system-wormhole-ring {
  position: relative;
  z-index: 2;
  display: block;
  width: 24px;
  height: 24px;
  background: url("../../../assets/galaxy/wormhole-ring.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 10px var(--node-color, #62f0ff));
  pointer-events: none;
}

.system-node-tag {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  white-space: nowrap;
}
.system-node-tag b {
  font-size: 11px;
  font-weight: 800;
  color: #eaf7ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.96);
}
.system-node-tag em {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(3, 10, 16, 0.72);
  border: 1px solid color-mix(in srgb, var(--node-color, #7df6ff) 36%, transparent);
  font-size: 10px;
  font-weight: 700;
  color: #e6f6ff;
}
.galaxy-constellation-map[data-zoom-tier="near"] .system-node-tag,
.galaxy-constellation-map[data-zoom-tier="mid"] .system-node-tag.is-notable,
.galaxy-map-canvas .solar-system-node.is-intergalactic-gate .system-node-tag,
.galaxy-map-canvas .solar-system-node.active .system-node-tag {
  opacity: 0.96;
}
.galaxy-constellation-map[data-zoom-tier="far"] .system-node-tag:not(.is-notable) {
  opacity: 0;
}
