body.is-loading {
  overflow: hidden;
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #001a3f;
  background-image: var(--loader-bg, url("../images/bg.png"));
  background-repeat: repeat;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0px,
    rgba(0, 0, 0, 0.35) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.loader__logo {
  width: clamp(40px, 7vw, 70px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(232, 254, 23, 0.4));
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.loader__text {
  margin: 0;
  font-family: "DotGothic16", sans-serif;
  font-size: clamp(12px, 2.5vw, 16px);
  letter-spacing: 3px;
  color: #e8fe17;
  text-shadow:
    0 0 6px rgba(232, 254, 23, 0.7),
    2px 0 rgba(255, 0, 90, 0.5),
    -2px 0 rgba(0, 220, 255, 0.5);
  animation: loader-blink 1s steps(1) infinite;
}
@keyframes loader-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.15;
  }
}
@keyframes loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader__logo,
  .loader__text {
    animation: none;
    opacity: 1;
  }
}
