body {
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
}

/* ADR-342: Boot screen — fixed overlay outside #app.
   Survives Vue mount → no blinking during auto-reload.
   Removed by main.js after full boot readiness. */
#lzr-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99997;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--initial-loader-bg, #fff);
  transition: opacity 0.3s ease;
}

.loading {
  position: relative;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 180px;
  inline-size: 180px;
}

.loading .effect-1,
.loading .effect-2,
.loading .effect-3 {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 100%;
  border-inline-start: 3px solid var(--initial-loader-color, #eee);
  inline-size: 100%;
}

.loading .effect-1 {
  animation: rotate 1s ease infinite;
}

.loading .effect-2 {
  animation: rotate-opacity 1s ease infinite 0.1s;
}

.loading .effect-3 {
  animation: rotate-opacity 1s ease infinite 0.2s;
}

.loading .effects {
  transition: all 0.3s ease;
}

/* Brand logo centered inside the spinner */
.loading-brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.loading-brand-text,
.loading-brand-dot {
  font-family: var(--lzr-font-family, "Public Sans", sans-serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.loading-brand-text {
  color: var(--initial-loader-text-color, #2F2B3D);
}

.loading-brand-dot {
  color: var(--initial-loader-color, #7367F0);
}

/* Boot footer — progress bar + status text at the bottom */
.lzr-boot-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(80%, 300px);
}

.lzr-boot-progress {
  width: 100%;
  height: 3px;
  background: rgba(128, 128, 128, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.lzr-boot-progress-bar {
  width: 25%;
  height: 100%;
  background: var(--initial-loader-color, #7367F0);
  border-radius: 2px;
  animation: lzr-progress 1.5s ease-in-out infinite;
}

.lzr-boot-status {
  margin: 0;
  font-family: var(--lzr-font-family, "Public Sans", sans-serif);
  font-size: 0.8125rem;
  color: var(--initial-loader-text-color, #2F2B3D);
  opacity: 0.55;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(1turn);
  }
}

@keyframes rotate-opacity {
  0% {
    opacity: 0.1;
    transform: rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: rotate(1turn);
  }
}

@keyframes lzr-progress {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(500%);
  }
}
