/* Loading splash, shared by public/index.html (before Vue) and
   src/components/splash/AppSplash.vue (dashboard overlay) so the hand-off
   between them is invisible. Everything is namespaced `abr-splash`.
   Animation: the logo outline is drawn, filled, faded (3.2s loop) and a
   comet runs along the bar. Switch off with `useNewSplash` (both places). */
.abr-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: #fff;
  font-family: Tahoma, sans-serif;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.abr-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.abr-splash__logo {
  width: 84px;
  height: 72px;
  overflow: visible;
}
.abr-splash__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.abr-splash__fill {
  fill: #0066ff;
  opacity: 0;
  animation: abr-splash-fill 3.2s linear infinite;
  animation-delay: var(--abr-splash-delay, 0s);
}
.abr-splash__line {
  fill: none;
  stroke: #0066ff;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: abr-splash-draw 3.2s linear infinite;
  animation-delay: var(--abr-splash-delay, 0s);
}
@keyframes abr-splash-draw {
  0% { stroke-dashoffset: 1; opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  50% { stroke-dashoffset: 0; opacity: 1; }
  84% { stroke-dashoffset: 0; opacity: 1; }
  97%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes abr-splash-fill {
  0%, 44% { opacity: 0; }
  59%, 84% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
.abr-splash__bar {
  position: relative;
  width: 140px;
  height: 4px;
  border-radius: 4px;
  background: #eaf1ff;
  overflow: hidden;
}
.abr-splash__bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60px;
  width: 60px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 102, 255, 0), #0066ff);
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.6);
  animation: abr-splash-comet 1.4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  animation-delay: var(--abr-splash-delay, 0s);
}
[dir='rtl'] .abr-splash__bar i {
  animation-name: abr-splash-comet-rtl;
  background: linear-gradient(270deg, rgba(0, 102, 255, 0), #0066ff);
}
@keyframes abr-splash-comet {
  0% { left: -60px; }
  100% { left: 140px; }
}
@keyframes abr-splash-comet-rtl {
  0% { left: 140px; }
  100% { left: -60px; }
}
.abr-splash__ver {
  font-size: 11px;
  color: #9aa4b2;
  letter-spacing: 0.3px;
  direction: ltr;
}
@media (prefers-reduced-motion: reduce) {
  .abr-splash__line { animation: none; stroke-dashoffset: 0; opacity: 0; }
  .abr-splash__fill { animation: none; opacity: 1; }
}
