/*
 * Copyright (c) 2025 TibiaKaiser - Tibia
 * All Rights Reserved.
 *
 * PROPRIETARY AND CONFIDENTIAL
 *
 * This software is the proprietary information of TibiaKaiser.
 * Unauthorized copying, modification, distribution, or use of this software,
 * via any medium, is strictly prohibited without the express written permission
 * of the copyright holder.
 *
 * For licensing inquiries, contact: tibiakaiser@contact.com
 *
 * @description Pre-React boot splash (#2426): paints the brand instantly over
 * the blank pre-hydration gap (index.html has no framework yet). index.tsx
 * removes #boot-splash the moment React commits its first frame, handing off
 * to the identical <BrandedLoader> circle underneath. Deliberately mirrors
 * BrandedLoader (72px mark, logo in a spinning ring) with literal values
 * since the design-system CSS vars aren't parsed yet; the bg colors match
 * src/index.css's pre-paint body colors (gray-100/900).
 *
 * Linked (not inline in index.html) so it's exempt from CSP style-src's
 * 'unsafe-inline' restriction — see #2426.
 */

#boot-splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  z-index: 2147483647;
}
#boot-splash .bs-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}
#boot-splash .bs-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: bootSplashSpin 0.8s linear infinite;
}
#boot-splash img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}
html.dark #boot-splash,
html[data-theme="dark"] #boot-splash {
  background: #111827;
}
@media (prefers-color-scheme: dark) {
  #boot-splash {
    background: #111827;
  }
}
@keyframes bootSplashSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #boot-splash .bs-ring {
    animation: none;
  }
}
