/* The loading screen: the ViktoPay mark, a light passing across it, and a
   thin line that runs under it. Served as a file (the CSP allows no inline
   <style>) and linked from index.html, so it shows on the very first paint,
   before the application's script has arrived; React replaces it when it
   renders, and the session splash reuses the same classes. */
.vk-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fbf9f6;
  z-index: 1;
}
[data-theme="dark"] .vk-loader {
  background: #0a0b0d;
}
.vk-loader-stack {
  display: grid;
  justify-items: center;
  gap: 22px;
  animation: vk-loader-in 420ms ease-out both;
}
.vk-loader-mark {
  position: relative;
  width: 64px;
  height: 43px;
  background: url("/brand-symbol.webp") center / contain no-repeat;
  animation: vk-loader-breathe 2.4s ease-in-out infinite;
}
/* The light: a bright band clipped to the mark's own shape. */
.vk-loader-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("/brand-symbol.webp") center / contain no-repeat;
  mask: url("/brand-symbol.webp") center / contain no-repeat;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 244, 228, 0.95) 50%,
    transparent 65%
  );
  background-size: 300% 100%;
  animation: vk-loader-sweep 1.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.vk-loader-line {
  position: relative;
  width: 88px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(28, 24, 20, 0.08);
}
[data-theme="dark"] .vk-loader-line {
  background: rgba(255, 255, 255, 0.08);
}
.vk-loader-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0), #ff6a00, rgba(255, 140, 60, 0));
  animation: vk-loader-run 1.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.vk-loader-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@keyframes vk-loader-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes vk-loader-breathe {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes vk-loader-sweep {
  0% {
    background-position: 100% 0;
  }
  70%,
  100% {
    background-position: 0% 0;
  }
}
@keyframes vk-loader-run {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(280%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vk-loader-stack,
  .vk-loader-mark,
  .vk-loader-mark::after,
  .vk-loader-line::after {
    animation-duration: 3.6s;
  }
  .vk-loader-mark {
    animation: none;
  }
}
