/* Quality pip — connection quality indicator in tile footer */

.quality-pip {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.quality-pip--good {
  background-color: var(--green, #3a9e5c);
}

.quality-pip--poor {
  background-color: #e6a817;
}

.quality-pip--lost {
  background-color: #c0392b;
}

/* Reconnect overlay — shown during connection drops */

.reconnect-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10, 10, 16, 0.75);
  backdrop-filter: blur(2px);
  z-index: 10;
  color: #fff;
  font-size: 13px;
}

.reconnect-overlay[hidden] {
  display: none;
}

.reconnect-overlay__spinner {
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: reconnect-spin 0.8s linear infinite;
}

.reconnect-overlay__label {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  opacity: 0.9;
}

@keyframes reconnect-spin {
  to { transform: rotate(360deg); }
}
