/* ================= ROOT SAFETY ================= */
html, body {
  background-color: #020617; /* slate-950 */
}

/* ================= FULLSCREEN FIRST LOAD ================= */
#firstLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#firstLoader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Logo / text */
#firstLoader h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #818cf8;
}

/* ================= PAGE TRANSITION ================= */
#pageTransition {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#pageTransition.active {
  opacity: 1;
  pointer-events: all;
}

/* ================= SKELETON ================= */
.skeleton {
  background: linear-gradient(
    100deg,
    #1e293b 40%,
    #334155 50%,
    #1e293b 60%
  );
  background-size: 200% 100%;
  animation: skeletonMove 1.4s infinite;
  border-radius: 0.75rem;
}

@keyframes skeletonMove {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
