/* LUXEN88 Global Loading V1 — isolated frontend only. */
#luxen88-global-loading-v1 {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147482600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  overflow: hidden !important;
  pointer-events: none !important; /* Safety: never trap a working UI if navigation fails. */
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease, visibility 180ms ease;
  animation: lxv1-failsafe 8s forwards;
}
#luxen88-global-loading-v1.lxv1-managed { animation: none !important; }
#luxen88-global-loading-v1.lxv1-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}
#luxen88-global-loading-v1 .lxv1-panel {
  width: min(82vw, 500px);
  max-width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  filter: none; /* no halo cast onto the website */
}
/* Separate rotating orbit: the brand wordmark never rotates. */
#luxen88-global-loading-v1 .lxv1-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: url('/assets/luxen88-global-loading-v1/luxen88-orbit.webp') center / contain no-repeat;
  transform-origin: 50% 50%;
  animation: lxv1-orbit-spin 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
#luxen88-global-loading-v1 .lxv1-logo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  mix-blend-mode: normal;
  position: relative;
  z-index: 1;
  animation: none !important;
  filter: none;
}
#luxen88-global-loading-v1 .lxv1-track,
#luxen88-global-loading-v1 .lxv1-text {
  position: relative;
  z-index: 2;
}
#luxen88-global-loading-v1 .lxv1-track {
  width: clamp(120px, 33vw, 210px);
  height: 3px;
  overflow: hidden;
  margin-top: -26px;
  border-radius: 100px;
  background: rgba(124,200,255,.2);
  box-shadow: 0 0 12px rgba(33,158,255,.18);
}
#luxen88-global-loading-v1 .lxv1-track::after {
  content: '';
  display: block;
  height: 100%;
  width: 36%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #48b7ff 55%, #e4f8ff);
  box-shadow: 0 0 12px #39b4ff;
  animation: lxv1-sweep 1.1s ease-in-out infinite alternate;
}
#luxen88-global-loading-v1 .lxv1-text {
  margin-top: 14px;
  font: 500 12px/1.5 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .12em;
  color: #c1e3ff;
  text-shadow: 0 0 12px rgba(38,155,255,.65);
}
@keyframes lxv1-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes lxv1-sweep { from { transform: translateX(-15%); } to { transform: translateX(210%); } }
@keyframes lxv1-breathe { from { opacity: .87; transform: scale(.99); } to { opacity: 1; transform: scale(1.015); } }
@keyframes lxv1-failsafe { 0%, 94% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 640px) {
  #luxen88-global-loading-v1 .lxv1-panel { width: min(92vw, 380px); }
  #luxen88-global-loading-v1 .lxv1-track { margin-top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  #luxen88-global-loading-v1 .lxv1-logo,
  #luxen88-global-loading-v1 .lxv1-track::after,
  #luxen88-global-loading-v1 .lxv1-panel::before { animation: none !important; }
}

/* V1R3 Transparent patch: preserve logo animation but remove full-screen background. */

/* LUXEN88 Global Loading Orbit V1R4 - transparent, isolated layers. */
