.cs-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(26, 48, 86, 0.55), transparent 70%),
    #05080f;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.cs-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cs-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.cs-loader__mark-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.cs-loader__mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(197, 160, 89, 0.28));
  animation: cs-loader-pulse 1.6s ease-in-out infinite;
}

.cs-loader__ring {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.cs-loader__ring-track,
.cs-loader__ring-progress {
  fill: none;
  stroke-width: 3.5;
}

.cs-loader__ring-track {
  stroke: rgba(197, 160, 89, 0.18);
}

.cs-loader__ring-progress {
  stroke: #c5a059;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.22s ease;
}

.cs-loader__bar {
  width: min(220px, 56vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.16);
  overflow: hidden;
}

.cs-loader__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9a7a3a, #e0c078 45%, #c5a059);
  transition: width 0.22s ease;
}

.cs-loader__label {
  margin: 0;
  color: rgba(230, 220, 196, 0.78);
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.cs-loader__pct {
  color: #d6ba83;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

@keyframes cs-loader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-loader__mark {
    animation: none;
  }

  .cs-loader,
  .cs-loader__bar-fill,
  .cs-loader__ring-progress {
    transition: none;
  }
}
