/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  font-family: "Reddit Mono", monospace;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.dots span {
  animation: blink 1.4s infinite both;
  font-size: 1.5rem;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

/* Hide when loaded */
#preloader.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
