* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  margin: 0;
}

body {
  background-color: #151225;
}

.app-loader {
  --x: -20;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #151225;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  opacity: 0;
  visibility: hidden;
}

.app-loader.is-visible {
  opacity: 1;
  visibility: visible;
}

.app-loader.is-leaving {
  opacity: 0;
  visibility: visible;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

.app-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}

.app-loader__logo {
  display: block;
  width: 336px;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.fl-sweep {
  transform: translateX(calc(var(--x) * 1px));
  transition: transform 0.4s ease-out;
}

.app-loader__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}

.app-loader__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
}

.app-loader__alert {
  display: none;
  width: 16px;
  height: 16px;
}

.app-loader__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  color: transparent;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #fff 50%, rgba(255, 255, 255, 0) 100%) no-repeat -36px 0 / 36px 100%,
    linear-gradient(180deg, #00aae7, #a357f1);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.6;
  animation: appLoaderShine 2s ease-in-out infinite;
}

.app-loader__hint {
  display: none;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #a8b6d4;
  text-align: center;
}

.app-loader__button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #fff;
  white-space: nowrap;
  background: transparent;
  border: 2px solid #00aae7;
  border-radius: 999px;
  cursor: pointer;
}

.app-loader__button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-loader[data-state='slow'] .app-loader__label,
.app-loader[data-state='offline'] .app-loader__label {
  background: none;
  opacity: 1;
  animation: none;
}

.app-loader[data-state='slow'] .app-loader__label {
  color: #f7d9a2;
}

.app-loader[data-state='slow'] .app-loader__hint,
.app-loader[data-state='offline'] .app-loader__hint {
  display: block;
}

.app-loader[data-state='slow'] .app-loader__button,
.app-loader[data-state='offline'] .app-loader__button {
  display: inline-flex;
}

.app-loader[data-state='offline'] .app-loader__alert {
  display: block;
}

.app-loader[data-state='offline'] .app-loader__label {
  color: #ef4444;
}

.app-loader[data-state='offline'] .app-loader__button {
  background: #ff0180;
  border-color: #ff0180;
}

@media (max-width: 959px) {
  .app-loader__logo {
    width: 316px;
  }
}

@keyframes appLoaderShine {
  0% {
    background-position:
      -36px 0,
      0 0;
  }
  70%,
  100% {
    background-position:
      107px 0,
      0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-sweep {
    transition: none;
  }

  .app-loader__label {
    animation: none;
  }
}
