/* Shared scene identity. Color and depth belong behind the existing world
   and miniature artwork; never transform their coordinate/click roots. */
body, [data-scenery="hq"], .nnPlanetSpace {
  --scene-light: 51, 133, 166;
  --scene-edge: 38, 64, 106;
  --scene-x: 50%; --scene-y: 50%;
  --scene-cloud: url('/assets/backgrounds/planet1-dust-region-01-v6134.png');
}
body[data-navigation-map="npc"], [data-scenery="npc"] {
  --scene-light: 135, 70, 48; --scene-edge: 58, 46, 96;
  --scene-x: 50%; --scene-y: 50%;
  --scene-cloud: url('/assets/backgrounds/planet1-dust-region-04-v6139.png');
}
body[data-navigation-map="fuel"], [data-scenery="fuel"] {
  --scene-light: 35, 110, 168; --scene-edge: 64, 44, 116;
  --scene-x: 74%; --scene-y: 72%;
  --scene-cloud: url('/assets/backgrounds/planet1-dust-region-02-v6137.png');
}
body[data-navigation-map="alliance"], [data-scenery="alliance"] {
  --scene-light: 92, 70, 145; --scene-edge: 28, 96, 116;
  --scene-x: 28%; --scene-y: 28%;
  --scene-cloud: url('/assets/backgrounds/planet1-dust-region-03-v6138.png');
}
/* Two stationary depth planes reuse the world's paint surface. No new
   textures, animated gradients, geometry reads, or scenery frame loop. */
body #world {
  background:
    radial-gradient(ellipse 16% 21% at var(--scene-x) var(--scene-y), rgba(var(--scene-light),.16), transparent 100%),
    radial-gradient(ellipse at 45% 58%, rgba(var(--scene-edge),.10), transparent 60%),
    radial-gradient(circle at 50% 50%, #08121c, #01050a 72%), #02070d !important;
}
/* Keep the approved cloud positions, transparent edges and star/grid layers.
   Broad drop shadows add paint cost to these large, already-soft textures. */
#world > img:is(.planetDustRegionV6134,.planetDustRegion02V6135,.planetDustRegion03V6138,.planetDustRegion04V6139,.planetDustRegion05V61312) {
  filter: saturate(1.04) brightness(1.02) !important;
}
#sectorNavigation #sectorLocalMap,
#sectorNavigation #sectorWarpMaps .sectorMapPreview {
  background:
    linear-gradient(180deg, #030b125c, #030b12c9),
    radial-gradient(ellipse at 65% 65%, rgba(var(--scene-light),.34), transparent 80%),
    var(--scene-cloud) center / cover no-repeat, #07121d;
  box-shadow: inset 0 1px 1px #add8ef12, inset 0 -14px 24px #01071055;
}
#sectorNavigation #sectorWarpMaps .sectorMapPreview::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(circle, #d6edff99 0 .6px, transparent 1px) 11px 17px / 47px 53px;
  opacity:.48;
}
#sectorNavigation #sectorWarpMaps .sectorMapPreview > img {
  width:16% !important; height:34% !important;
  max-height:34%; object-fit:contain;
}
#sectorNavigation #sectorWarpMaps .sectorMapPreview > :is(.hqPresentation,.hhpPresentation,.fspPresentation) {
  height:44% !important; max-height:44%; object-fit:contain;
}
/* The selector uses the HQ palette even when returning from another sector.
   Its live building stays above the same approved space artwork. */
.nnPlanetSpace {
  background:radial-gradient(ellipse at 50% 58%,rgba(var(--scene-light),.16),transparent 76%),#030a12;
}
.nnPlanetSpace img { filter:none; }
.nnPlanetNebulaLeft { opacity:.52; }
.nnPlanetNebulaRight { opacity:.43; }
@media (max-width:600px) {
  #world > img:is(.planetDustRegionV6134,.planetDustRegion02V6135,.planetDustRegion03V6138,.planetDustRegion04V6139,.planetDustRegion05V61312) { filter:none !important; }
}
