@font-face {
  font-family: "Mideets Loader";
  src: url("./fonts/mideets-wordmark.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html.md-loading { background: #0b1033; }
#md-loader {
  box-sizing: border-box;
  background: #0b1033;
  color: #f4f6fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 24px;
  text-align: center;
}
#md-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  transition: opacity .5s ease, visibility .5s ease;
}
#md-loader[hidden],
.md-retry[hidden] { display: none; }
#md-loader.md-done { opacity: 0; visibility: hidden; pointer-events: none; }
.md-mark {
  display: block;
  width: 210px;
  height: auto;
  max-width: 65vw;
  animation: mdDraw 3s cubic-bezier(.55,0,.25,1) infinite both;
}
.md-stack { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.md-clip { overflow: hidden; padding: 2px 0; }
.md-word {
  width: 230px;
  max-width: 80vw;
  font-family: "Mideets Loader", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.2;
  color: #fff;
  animation: mdRise 3s cubic-bezier(.2,.8,.2,1) infinite both;
}
.md-tag {
  max-width: 28rem;
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
  animation: mdTag 3s ease-out infinite both;
}
.md-retry {
  padding: 10px 22px;
  border: 1px solid #bfc8ec;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 15px/1.5 system-ui, sans-serif;
  cursor: pointer;
}
.md-retry:hover { background: #ffffff15; }
.md-retry:focus-visible { outline: 3px solid #c5caff; outline-offset: 4px; }
.md-delayed .md-mark,
.md-delayed .md-word,
.md-delayed .md-tag {
  animation: none;
  clip-path: none;
  transform: none;
  opacity: 1;
}
@keyframes mdDraw {
  0% { clip-path: inset(0 100% 0 0); transform: translateX(-10px); }
  28% { clip-path: inset(0 0 0 0); transform: translateX(0); }
  86% { clip-path: inset(0 0 0 0); opacity: 1; }
  96%,100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes mdRise {
  0%,24% { transform: translateY(105%); }
  40%,84% { transform: translateY(0); }
  94%,100% { transform: translateY(-105%); }
}
@keyframes mdTag {
  0%,30% { opacity: 0; transform: translateY(6px); }
  42%,84% { opacity: 1; transform: translateY(0); }
  94%,100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .md-mark, .md-word, .md-tag { animation: none; }
  #md-loader { transition-duration: .15s; }
}
