@font-face {
  font-family: 'ArbXP Boot';
  src: url('/static/assets/fonts/press-start-2p/PressStart2P-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  user-select: none;
  transition: opacity 400ms ease;
}
#loading-screen.is-leaving { opacity: 0; }
#ls-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: max-content;
  max-width: calc(100% - 48px);
  animation: arbxp-boot-enter 450ms ease-out both;
}
#ls-flag-row { display: flex; align-items: center; gap: 20px; }
#ls-logo {
  position: relative;
  flex: 0 0 auto;
  width: 76px;
  height: 92px;
  overflow: hidden;
}
#ls-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 168px;
  height: 168px;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
#ls-brand {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  color: #fff;
  font: 400 38px/1.25 'ArbXP Boot', monospace;
  letter-spacing: 0;
  font-synthesis: none;
}
#ls-brand .word2 { color: #ff7417; }
#ls-dots-bar {
  position: relative;
  width: 184px;
  height: 16px;
  overflow: hidden;
  border: 1px solid #444;
  border-radius: 4px;
  background: #090909;
  box-shadow: inset 0 1px 2px #000;
}
#ls-dots-track {
  position: absolute;
  inset: 3px auto 3px 0;
  display: flex;
  align-items: stretch;
  gap: 3px;
  width: max-content;
  animation: arbxp-boot-slide 1500ms linear infinite;
}
#ls-dots-track .xp-dot {
  flex: 0 0 11px;
  width: 11px;
  border-radius: 1px;
  background: linear-gradient(#70b3ff, #247de4 48%, #1555bd);
}
#ls-dots-track .xp-dot:first-child,
#ls-dots-track .xp-dot:last-child { opacity: .72; }
@keyframes arbxp-boot-slide {
  from { transform: translateX(-44px); }
  to { transform: translateX(188px); }
}
@keyframes arbxp-boot-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  #ls-logo-block { gap: 28px; }
  #ls-flag-row { flex-direction: column; gap: 22px; }
  #ls-logo {
    width: 104px;
    height: 120px;
    animation: arbxp-boot-mark 650ms cubic-bezier(.2, .8, .2, 1) both;
  }
  #ls-logo img { width: 224px; height: 224px; }
  #ls-brand { animation: arbxp-boot-type 650ms 180ms steps(10, end) both; }
  #ls-dots-bar { border-color: #30435c; }
}
@keyframes arbxp-boot-mark {
  from { transform: translateY(5px) scale(.9); }
  to { transform: translateY(0) scale(1); }
}
@keyframes arbxp-boot-type {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  #loading-screen { transition: none; }
  #ls-logo-block { animation: none; }
  #ls-dots-track { animation: none; left: 71px; }
  #ls-logo, #ls-brand { animation: none; }
}
