/* Стили экрана загрузки (вынесены из index.html —
   inline <style> ломал сборку Vite: html-inline-proxy). */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

[data-theme="light"] .loading-screen {
  background: #f5f7fa;
}

.loading-screen.hide {
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(124, 92, 255, 0.2);
  border-top-color: #7c5cff;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

[data-theme="light"] .spinner {
  border-color: rgba(30, 64, 175, 0.2);
  border-top-color: #1e40af;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}
