/* ═══════════ ЗАСТАВКА ПРИ ЗАПУСКЕ: «Из иконки» ═══════════
   Неон обводит рамку иконки, рисуется галочка — и иконка плавно «раскрывается»,
   открывая приложение (как будто входишь прямо в значок на рабочем столе).
   Уход заставки — класс .sp-hide (ставит js/boot.js, когда всё загружено). */

#splash-screen{
  position:fixed; inset:0; z-index:999999; overflow:hidden;
  background:radial-gradient(circle at 50% 46%,#15123a 0%,#0e0e14 58%);
  transition:opacity .7s cubic-bezier(.4,0,.2,1) .18s;
}
.sp-icon{
  position:absolute; left:50%; top:46%; width:132px; height:132px; margin:-66px 0 0 -66px;
  transition:transform .85s cubic-bezier(.65,0,.25,1), opacity .6s ease .3s;
  will-change:transform;
}
.sp-icon svg{ width:100%; height:100%; overflow:visible; display:block; }
.sp-frame{ stroke-dasharray:330; stroke-dashoffset:330; animation:spDraw .8s cubic-bezier(.55,0,.25,1) .1s forwards; }
.sp-check{ stroke-dasharray:110; stroke-dashoffset:110; animation:spDraw .5s cubic-bezier(.55,0,.25,1) .7s forwards; }
.sp-fill{ opacity:0; animation:spFade .6s ease .55s forwards; }
.sp-brand{
  position:absolute; left:0; right:0; top:calc(46% + 92px); text-align:center;
  font-family:'Rajdhani','Inter',sans-serif; font-weight:700; font-size:15px; letter-spacing:7px; color:#a7a3c4;
  opacity:0; transform:translateY(6px);
  animation:spBrand .6s ease-out .95s forwards;
  transition:opacity .3s ease;
}

/* уход: иконка раскрывается на весь экран, фон растворяется */
#splash-screen.sp-hide{ opacity:0; pointer-events:none; }
#splash-screen.sp-hide .sp-icon{ transform:scale(9); opacity:0; }
#splash-screen.sp-hide .sp-brand{ opacity:0; }

@keyframes spDraw{ to{ stroke-dashoffset:0; } }
@keyframes spFade{ to{ opacity:1; } }
@keyframes spBrand{ to{ opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce){
  .sp-frame,.sp-check,.sp-fill,.sp-brand{ animation-duration:.01s; animation-delay:0s; }
  .sp-icon{ transition:opacity .3s ease; }
  #splash-screen.sp-hide .sp-icon{ transform:none; }
}
