/* Shared by the initial HTML splash and every React loading screen. */
.cigma-loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #000;
}

.cigma-loading-screen--overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.cigma-loading-screen--page {
  min-height: 100vh;
  min-height: 100dvh;
}

.cigma-loading-screen--section {
  min-height: 240px;
}

.cigma-loading-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cigma-loading-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
}

.cigma-loading-logo {
  position: relative;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.cigma-loading-ring {
  position: absolute;
  inset: 4px;
  width: 120px;
  height: 120px;
  animation: cigma-loading-turn 1s linear infinite;
}

.cigma-loading-ring circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.cigma-loading-ring-track {
  stroke: rgba(132, 204, 22, 0.3);
}

.cigma-loading-ring-progress {
  stroke: #84cc16;
  stroke-dasharray: 94 283;
}

@keyframes cigma-loading-turn {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cigma-loading-ring { animation: none; }
}
