/* Smoked-glass celestial navigation. Orbit positions and timing remain in app.js. */
.orbit-system {
  --sphere-size: 124px;
}

.orbit-system .orbit-node {
  width: var(--sphere-size);
  height: var(--sphere-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.orbit-node .orbital-surface {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  gap: 0;
  padding: 22px 15px;
  overflow: hidden;
  border: 1px solid rgba(128, 175, 197, .28);
  border-radius: 50%;
  clip-path: none;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 28% 17%, rgba(149, 194, 218, .24), transparent 43%),
    radial-gradient(ellipse at 70% 90%, rgba(38, 131, 144, .17), transparent 44%),
    radial-gradient(ellipse at 66% 59%, #030913 12%, rgba(4, 13, 24, .94) 51%, #152b3d 100%);
  box-shadow:
    inset 2px 3px 6px rgba(179, 216, 232, .10),
    inset -5px -6px 14px rgba(0, 3, 11, .78),
    inset 0 -1px 2px rgba(92, 185, 193, .25),
    0 8px 20px rgba(0, 3, 10, .28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: none;
  filter: none;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

/* A tapered crescent and an offset reflection keep the light directional. */
.orbit-node .orbital-surface::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid transparent;
  border-top-color: rgba(214, 237, 245, .52);
  border-left-color: rgba(162, 210, 225, .22);
  border-radius: 50%;
  transform: rotate(-24deg);
  mask-image: linear-gradient(135deg, #000 5%, rgba(0, 0, 0, .6) 32%, transparent 61%);
  -webkit-mask-image: linear-gradient(135deg, #000 5%, rgba(0, 0, 0, .6) 32%, transparent 61%);
  pointer-events: none;
}

.orbit-node .orbital-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 29% 13% at 29% 17%, rgba(213, 236, 247, .24), rgba(169, 211, 232, .05) 63%, transparent 100%),
    radial-gradient(ellipse 43% 15% at 64% 98%, rgba(81, 180, 184, .17), transparent 100%),
    linear-gradient(125deg, rgba(155, 203, 222, .07), transparent 48%);
  opacity: .8;
  transition: opacity .35s ease;
  pointer-events: none;
}

.orbit-node .node-outline,
.orbit-node .orbit-number,
.orbit-node .node-arrow,
.orbit-node i.horizon-pin {
  display: none;
}

.orbit-node .node-label {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 92px;
  color: #e1eaf0;
  font: 400 17px/1.12 var(--display);
  letter-spacing: -.015em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 5px rgba(0, 3, 10, .75);
  transition: color .35s ease;
}

.orbit-node:nth-child(4) .node-label {
  font-size: 15px;
  line-height: 1.16;
  max-width: 89px;
}

.orbit-system .orbit-node:hover,
.orbit-system .orbit-node:focus-visible {
  background: none;
  border: 0;
  box-shadow: none;
}

.orbit-node:hover .orbital-surface,
.orbit-node:focus-visible .orbital-surface {
  background:
    radial-gradient(ellipse at 28% 17%, rgba(149, 194, 218, .24), transparent 43%),
    radial-gradient(ellipse at 70% 90%, rgba(38, 131, 144, .17), transparent 44%),
    radial-gradient(ellipse at 66% 59%, #030913 12%, rgba(4, 13, 24, .94) 51%, #152b3d 100%);
  border-color: rgba(154, 211, 220, .55);
  box-shadow:
    inset 2px 3px 9px rgba(179, 216, 232, .17),
    inset -5px -6px 14px rgba(0, 3, 11, .68),
    inset 0 -2px 6px rgba(92, 185, 193, .28),
    0 0 23px rgba(53, 139, 164, .19),
    0 8px 24px rgba(0, 3, 10, .32);
  transform: scale(1.035);
  filter: none;
}

.orbit-node:hover .orbital-surface::after,
.orbit-node:focus-visible .orbital-surface::after {
  opacity: 1;
}

.orbit-node:hover .node-label,
.orbit-node:focus-visible .node-label {
  color: #f2f7fa;
  text-decoration: none;
}

.orbit-system .orbit-node:focus-visible {
  outline: 2px solid #93d7da;
  outline-offset: 6px;
}

@media (min-width: 1600px) {
  .orbit-system { --sphere-size: 128px; }
}

@media (min-width: 800px) and (max-width: 1200px) {
  .orbit-system { --sphere-size: 118px; }
}

@media (max-width: 799px) {
  .orbit-system {
    --sphere-size: clamp(110px, 30vw, 120px);
    grid-template-columns: repeat(2, var(--sphere-size));
    justify-content: center;
    justify-items: center;
    gap: 18px clamp(22px, 7vw, 40px);
  }

  .orbit-system .orbit-node:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .orbit-system .orbit-node:last-child {
    grid-column: 1 / -1;
  }

  .orbit-node .orbital-surface { padding: 20px 13px; }
  .orbit-node .node-label { font-size: 17px; }
  .orbit-node:nth-child(4) .node-label { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-node .orbital-surface,
  .orbit-node .orbital-surface::after,
  .orbit-node .node-label { transition: none; }
  .orbit-node:hover .orbital-surface,
  .orbit-node:focus-visible .orbital-surface { transform: none; }
}
