html,
body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  background: #f4f6f8;
}

body {
  min-height: 100vh;
}

html:not(.psvc-ready),
html:not(.psvc-ready) body {
  overflow: hidden;
}

html:not(.psvc-ready) #root {
  visibility: hidden;
}

html.psvc-ready #root {
  visibility: visible;
}

#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(200, 16, 46, .08), transparent 30%),
    linear-gradient(180deg, #f8fafb 0%, #eef1f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 1;
  visibility: visible;
  transition: opacity .16s ease, visibility .16s ease;
}

#boot-splash.boot-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#boot-splash .boot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(86vw, 320px);
  text-align: center;
  transform: translateY(-2vh);
}

#boot-splash .boot-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #c8102e;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: .02em;
  box-shadow: 0 14px 34px rgba(200, 16, 46, .22);
}

#boot-splash .boot-spinner {
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  margin: 18px 0 14px;
  border: 3px solid #f2c7cf;
  border-top-color: #c8102e;
  border-radius: 50%;
  animation: psvc-boot-spin .72s linear infinite;
}

#boot-splash strong {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.35;
}

#boot-splash span {
  margin-top: 5px;
  color: #69717c;
  font-size: .84rem;
  line-height: 1.4;
}

#boot-splash .boot-line {
  width: min(74vw, 230px);
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebef;
}

#boot-splash .boot-line::after {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #c8102e;
  animation: psvc-boot-progress 1.05s ease-in-out infinite;
}

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

@keyframes psvc-boot-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
  #boot-splash .boot-spinner,
  #boot-splash .boot-line::after {
    animation-duration: 1.8s;
  }
}
