body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Inter', Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(193, 39, 45, 0.12), transparent 38%),
    linear-gradient(180deg, #fff9f5 0%, #fff3ec 52%, #f8ebe7 100%);
  color: #5e6278;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  overflow: hidden;
}

.splash-screen::before,
.splash-screen::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(193, 39, 45, 0.08);
  filter: blur(6px);
}

.splash-screen::before {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -60px;
}

.splash-screen::after {
  width: 280px;
  height: 280px;
  bottom: -120px;
  left: -100px;
}

.splash-screen__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 28px;
  min-width: min(320px, calc(100vw - 48px));
  border: 1px solid rgba(193, 39, 45, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(114, 34, 12, 0.12);
  backdrop-filter: blur(14px);
}

.splash-screen span {
  color: #5e6278;
  transition: none !important;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.splash-screen img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.splash-screen__spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid rgba(193, 39, 45, 0.14);
  border-top-color: #c1272d;
  animation: splash-spin 0.9s linear infinite;
}

.splash-screen__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2f1f1a;
}

.splash-screen__message {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 240px;
}

[data-bs-theme="dark"] .splash-screen {
  background:
    radial-gradient(circle at top, rgba(255, 151, 119, 0.16), transparent 38%),
    linear-gradient(180deg, #1f1414 0%, #150f0f 100%);
  color: #d6d0cf;
}

[data-bs-theme="dark"] .splash-screen span {
  color: #d6d0cf;
}

[data-bs-theme="dark"] .splash-screen::before,
[data-bs-theme="dark"] .splash-screen::after {
  background: rgba(255, 151, 119, 0.12);
}

[data-bs-theme="dark"] .splash-screen__card {
  border-color: rgba(255, 151, 119, 0.12);
  background: rgba(31, 20, 20, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .splash-screen__title {
  color: #fff4ef;
}

[data-bs-theme="dark"] .splash-screen__spinner {
  border-color: rgba(255, 151, 119, 0.18);
  border-top-color: #ff9777;
}

#root {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}
