/* ISS Radar module ONLY (scoped) */

.iss-card #issRadarMount{
  margin-top: 10px;
}

/* Make the module stack nicely inside your .card */
.iss-radar{
  display: grid;
  grid-template-columns: 1fr;   /* stack: radar then readout */
  gap: 12px;
  width: 100%;
}

/* Radar scope: responsive square */
.iss-radar__scope{
  width: 100%;
  max-width: 280px;             /* keeps it from getting huge */
  aspect-ratio: 1 / 1;          /* always a square */
  border-radius: 50%;
  position: relative;
  overflow: hidden;

  border: 1px dashed rgba(0,255,255,0.55);
  background: rgba(0,0,0,0.18);
}

/* Center the radar within the card */
.iss-radar__scope{
  margin: 0;                    /* default */
}
.iss-card .iss-radar__scope{
  margin-left: 0;
}
@media (min-width: 520px){
  .iss-card .iss-radar__scope{
    margin-left: auto;
    margin-right: auto;         /* center on wider cards */
  }
}

.iss-radar__rings::before,
.iss-radar__rings::after{
  content:"";
  position:absolute;
  inset: 12%;
  border: 1px solid rgba(0,255,255,0.18);
  border-radius: 50%;
}
.iss-radar__rings::after{ inset: 36%; }

.iss-radar__cross::before,
.iss-radar__cross::after{
  content:"";
  position:absolute;
  background: rgba(0,255,255,0.10);
}
.iss-radar__cross::before{
  left:50%; top:0; width:1px; height:100%;
  transform:translateX(-50%);
}
.iss-radar__cross::after{
  left:0; top:50%; width:100%; height:1px;
  transform:translateY(-50%);
}

.iss-radar__sweep{
  position:absolute;
  inset:-10%;
  background: conic-gradient(
    from 0deg,
    rgba(0,255,255,0.00) 0deg,
    rgba(0,255,255,0.12) 18deg,
    rgba(0,255,255,0.00) 42deg,
    rgba(0,255,255,0.00) 360deg
  );
  animation: issSweep 4.2s linear infinite;
}
@keyframes issSweep{ to{ transform: rotate(360deg); } }

.iss-radar__blip{
  position:absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  opacity: 0;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 10px rgba(0,255,255,0.45);
}
.iss-radar__blip.is-on{
  opacity: 1;
  animation: issPulse 1.1s ease-in-out infinite;
}
@keyframes issPulse{
  0%,100%{ transform: translate(-50%, -50%) scale(1); }
  50%{ transform: translate(-50%, -50%) scale(1.35); }
}

/* Readout should NOT become a tall skinny tower */
.iss-readout{
  width: 100%;
  border: 1px dashed rgba(0,255,255,0.55);
  background: rgba(0,0,0,0.18);
  padding: 10px;
  box-sizing: border-box;
}

.iss-readout__row{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 3px 0;
}

.iss-k{ opacity: 0.75; }
.iss-v{
  overflow-wrap:anywhere;
  min-width: 0;                 /* important to prevent layout blowouts */
}

.iss-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.iss-btn{
  font: inherit;
  color: inherit;
  background: rgba(0,0,0,0.18);
  border: 1px dashed rgba(0,255,255,0.55);
  padding: 8px 10px;
  cursor:pointer;
  text-align:left;
}

.iss-btn:hover{
  border-color: rgba(0,255,255,0.9);
}

.iss-note{
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}