#loadingScreen {
  position: fixed; inset: 0;
  background: #191B20;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 99999;
  gap: 28px;
  transition: opacity 0.5s ease;
}
#loadingScreen.fade-out { opacity: 0; pointer-events: none; }
.loading-logo {
  width: 96px; height: auto;
  display: flex; align-items: center; justify-content: center;
  animation: loadPulse 2s ease-in-out infinite;
}
.loading-logo img { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
@keyframes loadPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.08); }
}
@media (min-width: 769px) {
  @keyframes loadPulse {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(31,230,100,0)); }
    50%     { transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(31,230,100,0.45)); }
  }
}
.loading-tagline {
  color: #dbdee1;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  max-width: 300px;
  opacity: 0.85;
  line-height: 1.5;
}
.loading-status {
  color: #949ba4;
  font-size: 0.72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.loading-dots span {
  display: inline-block;
  width: 5px; height: 5px;
  background: #949ba4;
  border-radius: 50%;
  animation: dot 1.2s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dot {
  0%,80%,100% { opacity: .2; transform: scale(0.8); }
  40%          { opacity: 1;  transform: scale(1); }
}
.loading-conn-error {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.loading-conn-error.visible { display: flex; }
.loading-conn-title {
  color: #949ba4;
  font-size: 0.78rem;
  font-weight: 600;
}
.loading-conn-links {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.78rem;
}
.loading-conn-links a { color: #00a8fc; text-decoration: none; }
.loading-conn-links a:hover { text-decoration: underline; }

/* Página independiente loading.html (data-persist) */
#loadingScreen[data-persist] { position: static; min-height: 100vh; }
