/*
 * Boot screen: shown by index.html before the JavaScript has loaded, and by
 * <SplashScreen> while the app checks the licence and session. Plain CSS (no
 * Tailwind) so it works before the app's stylesheet arrives. Colours follow the
 * theme tokens in src/index.css; theme-init.js has already set data-theme.
 */
.boot-splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: radial-gradient(ellipse at 50% 38%, rgb(59 111 182 / 0.12), transparent 60%), rgb(247 243 238);
  color: rgb(43 33 27);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  animation: boot-in 240ms ease-out both;
}
:root[data-theme='night'] .boot-splash {
  background: radial-gradient(ellipse at 50% 38%, rgb(59 111 182 / 0.18), transparent 60%), rgb(23 17 13);
  color: rgb(246 238 227);
}
.boot-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgb(19 35 61 / 0.22);
  animation: boot-float 2.4s ease-in-out infinite;
}
.boot-name {
  margin: 20px 0 0;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.boot-bar {
  position: relative;
  width: 168px;
  height: 4px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(59 111 182 / 0.14);
}
:root[data-theme='night'] .boot-bar {
  background: rgb(255 255 255 / 0.12);
}
.boot-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fb4ee, #3b6fb6);
  animation: boot-slide 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.boot-label {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: rgb(107 95 86);
}
:root[data-theme='night'] .boot-label {
  color: rgb(200 186 170);
}
.boot-by {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  margin: 0;
  line-height: 0;
}
/* The owner's wordmark: the light-background version by day, the dark one at night. */
.boot-by img {
  width: 96px;
  height: auto;
}
.boot-wordmark-dark,
:root[data-theme='night'] .boot-wordmark {
  display: none;
}
:root[data-theme='night'] .boot-wordmark-dark {
  display: inline;
}
@keyframes boot-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
@keyframes boot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes boot-in {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-logo, .boot-splash { animation: none; }
  .boot-bar > span { animation-duration: 3.2s; }
}
