/* ═══════════════════════════════════════════════════════════════════
   WOSUX page preloader  —  /preloader.css
   Self-contained: nothing here depends on Bootstrap or any other CSS.
   Markup comes from /preloader.php, behaviour from /preloader.js
   ═══════════════════════════════════════════════════════════════════ */

.wxl {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(120% 90% at 50% 38%, #151b2e 0%, #080a11 70%);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: opacity .45s ease, visibility .45s ease;
  /* Safety net: even if preloader.js fails to load, the loader hides itself after 10s */
  animation: wxlFailsafe .01s linear 10s forwards;
}
.wxl.is-exiting { opacity: 0; visibility: hidden; pointer-events: none; }
.wxl.is-done    { display: none; }
html.no-loader .wxl { display: none !important; }
@keyframes wxlFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* WOSUX word: faint ghost text with a bright copy that is revealed left → right */
.wxl-word   { position: relative; font-weight: 800; font-size: clamp(44px, 12vw, 96px); line-height: 1; letter-spacing: .18em; padding-left: .18em; }
.wxl-ghost  { color: rgba(255, 255, 255, .10); }
.wxl-bright { position: absolute; inset: 0; color: #fff; clip-path: inset(0 100% 0 0); text-shadow: 0 0 28px rgba(99, 179, 237, .55); will-change: clip-path; }

/* Track with the little cart driving along it */
.wxl-track { position: relative; width: min(340px, 70vw); height: 26px; }
.wxl-line  { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.wxl-cart  { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); will-change: left; }
.wxl-wheel { transform-box: fill-box; transform-origin: center; animation: wxlSpin .6s linear infinite; }
@keyframes wxlSpin { to { transform: rotate(360deg); } }

.wxl-tag { margin: 0; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .55); text-align: center; }
.wxl-pct { font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .4); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .wxl-wheel { animation: none; } }