@font-face {
  font-family: "Minedrop Pixel";
  src: url("pixel.ttf?v=2") format("truetype");
  font-display: block;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 46%, #2b2135 0%, #17131c 42%, #0e0c11 100%);
  transition: opacity .6s ease, visibility .6s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.lwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lstage {
  position: relative;
  width: 220px;
  height: 156px;
}

.loader .pick {
  position: absolute;
  left: 17px;
  top: 10px;
  width: 120px;
  height: 120px;
  transform-origin: 16% 78%;
  animation: md-swing .95s cubic-bezier(.45, 0, .25, 1) infinite;
  filter: drop-shadow(0 6px 10px #0009);
}

.ground {
  position: absolute;
  left: 26px;
  top: 130px;
  display: flex;
}

.ground i {
  width: 24px;
  height: 24px;
  background: linear-gradient(#6c9d3d 0 28%, #557c2f 28% 36%, #7a5236 36%);
  box-shadow: inset 0 0 0 2px #00000033;
  animation: md-thump .95s infinite;
}

.dust i {
  position: absolute;
  left: 107px;
  top: 124px;
  width: 6px;
  height: 6px;
  background: #c9a47a;
  opacity: 0;
  animation: md-dust .95s infinite;
}
.dust i:nth-child(1) { --dx: -16px; --dy: -14px; }
.dust i:nth-child(2) { --dx: 4px; --dy: -22px; background: #a98059; }
.dust i:nth-child(3) { --dx: 20px; --dy: -10px; }

.ltext {
  font: 20px "Minedrop Pixel", monospace;
  letter-spacing: 2px;
  color: #c9bdd6;
  -webkit-font-smoothing: none;
}

.dots i {
  font-style: normal;
  animation: md-dot 1.2s infinite;
  opacity: .2;
}
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

@keyframes md-swing {
  0% { transform: rotate(-8deg); }
  52% { transform: rotate(-20deg); }
  72% { transform: rotate(26deg); }
  80% { transform: rotate(19deg); }
  100% { transform: rotate(-8deg); }
}

@keyframes md-dust {
  0%, 71% { opacity: 0; transform: translate(0, 0); }
  73% { opacity: 1; transform: translate(0, 0); }
  95% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  100% { opacity: 0; }
}

@keyframes md-thump {
  0%, 71% { transform: translateY(0); }
  74% { transform: translateY(2px); }
  80%, 100% { transform: translateY(0); }
}

@keyframes md-dot {
  0%, 100% { opacity: .2; }
  40% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader .pick { animation: none; transform: rotate(-10deg); }
  .ground i, .dust i, .dots i { animation: none; }
  .dots i { opacity: 1; }
}
