#loader {
  position: fixed;
  inset: 0;
  background: #0e0e0e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity .2s ease-out;
}

#loader::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid #444;
  border-top-color: #00eaff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

body.loaded #loader {
  opacity: 0;
  pointer-events: none;
}
