#sagemcom-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, #1a3a6b 0%, #0a1628 45%, #050d18 100%);
  color: #e8f4ff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#sagemcom-splash.splash-fade-out {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

#sagemcom-splash.splash-hidden {
  display: none !important;
}

html.splash-skip #sagemcom-splash {
  display: none !important;
}

html:not(.splash-skip) #root {
  visibility: hidden;
}

.splash-network-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.splash-network-bg canvas {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.splash-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  animation: splash-pulse 3s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(520px, 92vw);
  padding: 0 1rem;
}

.splash-logo-wrap {
  margin-bottom: 2rem;
  animation: splash-logo-in 0.8s ease-out both;
}

@keyframes splash-logo-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-logo-img {
  display: block;
  width: min(480px, 88vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(59, 130, 246, 0.35));
}

.splash-logo-sub {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.75);
}

.splash-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.splash-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #38bdf8);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  transition: width 0.35s ease;
}

.splash-status {
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.85);
  min-height: 1.25rem;
  letter-spacing: 0.02em;
}

.splash-pct {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(147, 197, 253, 0.9);
  font-variant-numeric: tabular-nums;
}

.splash-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(59, 130, 246, 0.2) 100%);
  color: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.splash-start-btn.splash-start-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.splash-start-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(96, 165, 250, 0.35) 100%);
  box-shadow: 0 10px 36px rgba(59, 130, 246, 0.35);
}

.splash-start-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

.splash-start-icon {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  animation: splash-point-bounce 1.1s ease-in-out infinite;
}

.splash-start-text {
  text-transform: capitalize;
}

@keyframes splash-point-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
