/* VailScan.gg — Loading Screen */

#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.loading-screen--hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* Scanlines */
#loading-screen::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,255,136,0.012) 2px, rgba(0,255,136,0.012) 4px
  );
  pointer-events: none; z-index: 1;
}
/* Drifting grid */
#loading-screen::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.022) 1px, transparent 1px);
  background-size: 60px 60px; z-index: 1;
  animation: grid-drift 10s linear infinite;
}
@keyframes grid-drift { 100% { transform: translate(60px, 60px); } }

.loading-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
  width: 300px;
}

/* Logo */
.loading-logo {
  font-family: 'Bebas Neue', monospace;
  font-size: 48px; letter-spacing: 6px;
  line-height: 1; text-align: center; -webkit-user-select: none; user-select: none;
}
.loading-logo-a  { color: #fff; }
.loading-logo-gg { color: #00ff88; font-size: 32px; letter-spacing: 4px; }

.loading-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; letter-spacing: 4px;
  color: rgba(255,255,255,0.3); text-transform: uppercase;
  margin-top: -18px;
}

/* Corners */
.loading-corner { position: absolute; width: 18px; height: 18px; opacity: 0.35; }
.loading-corner--tl { top:20px; left:20px;   border-top:1px solid #00ff88; border-left:1px solid #00ff88; }
.loading-corner--tr { top:20px; right:20px;  border-top:1px solid #00ff88; border-right:1px solid #00ff88; }
.loading-corner--bl { bottom:20px; left:20px;  border-bottom:1px solid #00ff88; border-left:1px solid #00ff88; }
.loading-corner--br { bottom:20px; right:20px; border-bottom:1px solid #00ff88; border-right:1px solid #00ff88; }

/* Spinner */
.loading-icon { width: 52px; height: 52px; position: relative; }
.loading-icon-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(0,255,136,0.12); border-radius: 50%;
}
.loading-icon-ring:nth-child(1) { animation: spin 3s linear infinite; border-top-color: #00ff88; }
.loading-icon-ring:nth-child(2) { inset: 8px; animation: spin-rev 2s linear infinite; border-right-color: rgba(0,255,136,0.5); }
.loading-icon-dot {
  position: absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  width:5px; height:5px; background:#00ff88; border-radius:50%;
  box-shadow: 0 0 8px #00ff88;
}
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

/* Progress wrapper — percentage sits ABOVE the bar */
.loading-progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Stats row with percentage — above the bar */
.loading-stats {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

#loading-progress-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: #00ff88; letter-spacing: 2px;
}

/* The progress bar track */
.loading-progress-track {
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.07);
  position: relative;
}

#loading-progress-bar {
  height: 100%; width: 0%;
  background: #00ff88;
  transition: width 0.25s ease;
  position: relative;
}
#loading-progress-bar::after {
  content: ''; position: absolute; right: 0; top: -2px;
  width: 5px; height: 5px; background: #00ff88; border-radius: 50%;
  box-shadow: 0 0 8px #00ff88, 0 0 18px #00ff88;
}