/* 전체 화면 로딩 표시 — 위쪽 얇은 흐름 막대 + 반투명 유리 오버레이 속 회전 링.
 * 색: 파랑 → 분홍(Oxford Pink) → 금색 의 선명한 그라데이션(차분한 화면 속에서 눈에 띄는 포인트).
 * 글자는 12px 하나만 쓴다. 모션 줄이기 설정이면 회전 대신 천천히 깜박인다. */
:root {
	--nxl-a: #2f6fde; --nxl-b: #e6007e; --nxl-c: #ffb100;
}

/* 위쪽 막대 */
.nxl-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; height: 3px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nxl-bar.is-on { opacity: 1; }
.nxl-bar i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--nxl-a), var(--nxl-b), var(--nxl-c), transparent); box-shadow: 0 0 10px rgba(230, 0, 126, .55); animation: nxl-slide 1.05s cubic-bezier(.4, 0, .2, 1) infinite; }

/* 오버레이: 반투명 유리 */
.nxl { position: fixed; inset: 0; z-index: 1990; display: flex; align-items: center; justify-content: center; background: rgba(241, 238, 233, .38); backdrop-filter: blur(5px) saturate(150%); animation: nxl-in .22s ease-out; cursor: progress; }
.nxl[hidden] { display: none; }
.nxl-card { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 150px; padding: 22px 28px 16px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 18px 40px -14px rgba(0, 33, 71, .45); backdrop-filter: blur(14px) saturate(180%); }
.nxl-msg { margin: 0; color: var(--nx-primary, #002147); font-size: 12px; letter-spacing: .04em; }

/* 링: 바깥은 시계 방향, 안쪽은 반대 방향으로 돌고 가운데 구슬이 숨 쉰다 */
.nxl-ring { position: relative; width: 52px; height: 52px; }
.nxl-ring i { position: absolute; border-radius: 50%; }
.nxl-r1 { inset: 0; background: conic-gradient(from 0deg, rgba(47, 111, 222, 0) 0%, var(--nxl-a) 30%, var(--nxl-b) 65%, var(--nxl-c) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: nxl-spin 1s linear infinite; filter: drop-shadow(0 2px 6px rgba(230, 0, 126, .35)); }
.nxl-r2 { inset: 9px; background: conic-gradient(from 180deg, rgba(255, 177, 0, 0) 0%, var(--nxl-c) 40%, var(--nxl-b) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); opacity: .85; animation: nxl-spin .75s linear infinite reverse; }
.nxl-core { inset: 20px; background: radial-gradient(circle at 32% 28%, #fff 0 12%, #ffd36a 36%, var(--nxl-b) 100%); box-shadow: 0 0 12px rgba(230, 0, 126, .55); animation: nxl-pulse 1.2s ease-in-out infinite; }

/* 다른 곳(예: 표·패널 안)에서 쓰는 작은 링: <i class="nxl-mini"></i> */
.nxl-mini { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(47, 111, 222, 0), var(--nxl-a) 30%, var(--nxl-b) 65%, var(--nxl-c)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: nxl-spin .9s linear infinite; }

@keyframes nxl-spin { to { transform: rotate(360deg); } }
@keyframes nxl-slide { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes nxl-pulse { 0%, 100% { transform: scale(.7); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes nxl-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.nxl-r1, .nxl-r2, .nxl-mini { animation-duration: 3s; }
	.nxl-bar i { animation-duration: 2.4s; }
	.nxl-core { animation: none; }
}
