/* 行星防护罩：自己和其他玩家在星图上看到的同一层半透明护壳。
   数据来自 planet.protection / planet.buffs(PLANET_PROTECTION)，见
   src/features/game/rules/planetProtection.js。 */

.orbit-planet-node.has-planet-shield {
  --shield-tint: rgba(96, 205, 255, 0.92);
}

.orbit-planet-node .orbit-shield-shell {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 50%, rgba(96, 205, 255, 0.05) 46%, rgba(96, 205, 255, 0.28) 72%, rgba(150, 230, 255, 0.55) 92%, rgba(210, 245, 255, 0.85) 100%);
  border: 1px solid rgba(170, 235, 255, 0.85);
  box-shadow:
    0 0 12px rgba(96, 205, 255, 0.55),
    inset 0 0 18px rgba(120, 220, 255, 0.45);
  backdrop-filter: blur(1px) saturate(1.15);
  animation: planet-shield-breathe 3.6s ease-in-out infinite;
}

.orbit-planet-node .orbit-shield-shell::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border-top: 1px solid rgba(220, 250, 255, 0.45);
  border-left: 1px solid rgba(220, 250, 255, 0.2);
  transform: rotate(-24deg);
}

@keyframes planet-shield-breathe {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-planet-node .orbit-shield-shell { animation: none; }
}

/* 星系列表里的盾牌标记 */
.planet-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  color: #d6f6ff;
  background: rgba(40, 120, 170, 0.35);
  border: 1px solid rgba(140, 225, 255, 0.7);
  box-shadow: 0 0 10px rgba(96, 205, 255, 0.35);
}

.planet-shield-badge::before {
  content: "🛡";
  font-size: 11px;
}

.galaxy-row.has-planet-shield {
  box-shadow: inset 0 0 0 1px rgba(140, 225, 255, 0.55), 0 0 14px rgba(96, 205, 255, 0.22);
}

.planet-shield-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #d6f6ff;
  background: rgba(40, 120, 170, 0.28);
  border: 1px solid rgba(140, 225, 255, 0.55);
}
