html.am-loading {
  overflow: hidden;
  overscroll-behavior: none;
}

.am-preloader {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #1a1a1a;
  overflow: hidden;
  touch-action: none;
}

.am-preloader[open] {
  display: grid;
  place-items: center;
  animation: am-preloader-exit 200ms ease 2660ms both;
}

.am-preloader::backdrop {
  background: transparent;
}

.am-preloader__cluster {
  display: block;
  width: min(100vw, 100vh);
  width: min(100vw, 100dvh);
  height: auto;
  transition: transform 220ms ease-out;
}

.am-preloader__outline {
  fill: none;
  stroke: #707070;
  stroke-opacity: .65;
  stroke-width: 1;
  stroke-dasharray: 1.2 2.2;
}

.am-preloader__question {
  fill: #a0a0a0;
  fill-opacity: .55;
  font: 700 13px system-ui, sans-serif;
  text-anchor: middle;
}

.am-preloader__symbol {
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.am-preloader__symbol--filled,
.am-preloader__symbol--dot {
  fill: currentColor;
}

.am-preloader__symbol--dot {
  stroke: none;
}

.am-preloader__ripple {
  fill: none;
  stroke: #363636;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.am-preloader[open] :is(.am-preloader__outline, .am-preloader__question) {
  animation: am-preloader-placeholder 625ms linear var(--bubble-delay) both;
}

.am-preloader[open] .am-preloader__symbol {
  animation: am-preloader-symbol 570ms ease-out calc(var(--bubble-delay) + 45ms) both;
}

.am-preloader[open] .am-preloader__ripple {
  animation: am-preloader-ripple 800ms ease-out var(--bubble-delay) forwards;
}

@keyframes am-preloader-placeholder {
  0%, 100% { opacity: 1; }
  18%, 68% { opacity: 0; }
}

@keyframes am-preloader-symbol {
  0% { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
  47%, 70% { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes am-preloader-ripple {
  0% { opacity: .55; transform: scale(1); stroke-width: 1.4; }
  35% { stroke-width: .34; }
  100% { opacity: 0; transform: scale(4.5); stroke-width: .067; }
}

@keyframes am-preloader-exit {
  to { opacity: 0; }
}
