/* Orbit — SVG renderer scene styles
 *
 * Element-specific styling for the SVG globe. Chrome (vars, body, .stars,
 * .brand, .panel, .ticker, .scene, .fps-meter, #loading, media query) lives in
 * ../shared/ui.css and is NOT duplicated here.
 */

#globe-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#globe-svg.grabbing {
  cursor: grabbing;
}

/* sphere */
#sphere {
  fill: url(#sphere-grad);
}
#sphere-glow {
  fill: none;
  stroke: url(#atmos);
  stroke-width: 14;
  filter: url(#soft);
  opacity: 0.7;
}
#sphere-highlight {
  fill: url(#highlight-grad);
  pointer-events: none;
}
#bottom-glow {
  fill: url(#bottom-glow-grad);
  filter: url(#soft);
  pointer-events: none;
}
#graticule {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.6;
  opacity: 0.5;
}
#spikes {
  fill: none;
  stroke: #9fc6ff;
  stroke-width: 0.6;
  stroke-linecap: round;
  opacity: 0.1;
  mix-blend-mode: screen;
}
#land-dots {
  mix-blend-mode: screen;
}
#land-dots path {
  fill: none;
  stroke: #bfe0ff;
  stroke-linecap: round;
}
#land-s {
  stroke-width: 2.3;
  opacity: 0.8;
}
#land-m {
  stroke-width: 2.9;
  opacity: 0.92;
}
#land-l {
  stroke-width: 3.6;
  opacity: 1;
}
/* day / night terminator: two graduated layers for a soft twilight → deep-night falloff */
#night,
#night-core {
  fill: #03060f;
  filter: url(#night-soft);
  clip-path: url(#globe-clip);
  pointer-events: none;
}
#night {
  opacity: 0.3;
}
#night-core {
  opacity: 0.32;
}
/* golden city lights glowing on the night side */
#citylights {
  mix-blend-mode: screen;
  pointer-events: none;
}
.city-l {
  fill: none;
  stroke: #ffcf73;
  stroke-width: 3.1;
  stroke-linecap: round;
}
/* polar auroras */
#aurora {
  mix-blend-mode: screen;
  pointer-events: none;
  filter: url(#aurora-soft);
}
.aur {
  fill: none;
  stroke-linecap: round;
}
/* shooting stars / meteors */
#shooting {
  mix-blend-mode: screen;
  pointer-events: none;
}
.met-trail {
  stroke-linecap: round;
  fill: none;
}
.met-head {
  fill: #fff;
}
.aur-g {
  stroke: #5cffb0;
  stroke-width: 5.5;
}
.aur-v {
  stroke: #b58cff;
  stroke-width: 3.5;
}
#nodes {
  mix-blend-mode: screen;
}
.node {
  fill: #eaf4ff;
}
#orbits-front path {
  fill: none;
  stroke: #bcd6ff;
  stroke-width: 0.85;
  opacity: 0.5;
  mix-blend-mode: screen;
}
#orbits-back path {
  fill: none;
  stroke: #6f9bd6;
  stroke-width: 0.7;
  opacity: 0.16;
}
.orbit-sat {
  fill: #cce6ff;
}

/* beams — glow built from layered strokes + screen blend (no per-frame filters) */
#beams {
  mix-blend-mode: screen;
}
.beam-glow {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  opacity: 0.22;
}
.beam-core {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0.95;
}
.beam-hot {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.9;
}
.beam-spark {
  fill: none;
  stroke-width: 4.2;
  stroke-linecap: round;
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 5px #fff);
}
.beam-head {
  filter: drop-shadow(0 0 6px #fff);
}

.impact {
  fill: none;
  stroke-width: 1.6;
}
.impact-burst {
  filter: url(#beam-glow-f);
}

/* dramatic beam for the fireworks-trigger activity */
.beam-special .beam-glow {
  stroke-width: 13;
  opacity: 0.55;
}
.beam-special .beam-core {
  stroke-width: 3.4;
}
.beam-special .beam-hot {
  stroke-width: 1.5;
}
/* fireworks */
.fw-flash {
  filter: drop-shadow(0 0 16px #fff);
}
.fw-spark {
  will-change: transform, opacity;
}

/* HQ */
.hq-dot {
  fill: #fff;
  filter: drop-shadow(0 0 7px #fff);
}
.hq-ring {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: hqpulse 2.6s ease-out infinite;
}
.hq-ring-2 {
  animation-delay: 1.3s;
}
@keyframes hqpulse {
  0% {
    r: 5;
    opacity: 0.9;
  }
  100% {
    r: 34px;
    opacity: 0;
  }
}
.hq-label-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(5, 6, 12, 0.8);
  stroke-width: 3.5px;
}
.hq-label-sub {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--accent);
  paint-order: stroke;
  stroke: rgba(5, 6, 12, 0.8);
  stroke-width: 3.5px;
  letter-spacing: 0.04em;
}
