body {
  margin: 0;
  min-block-size: 100vh;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
  min-block-size: 100%;
}

#app {
  min-block-size: 100vh;
}

#loading-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 25% 20%, rgb(30 136 229 / 0.15), transparent 42%),
    radial-gradient(circle at 78% 82%, rgb(0 188 212 / 0.13), transparent 45%),
    linear-gradient(160deg, rgb(255 255 255 / 0.9), rgb(241 247 255 / 0.96)),
    var(--initial-loader-bg, #f5f8ff);
  block-size: 100%;
  gap: 1rem 0;
  inline-size: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.loading-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.55);
  box-shadow:
    0 24px 50px rgb(31 97 166 / 0.14),
    0 4px 12px rgb(31 97 166 / 0.12);
  backdrop-filter: blur(8px);
  inline-size: 132px;
  block-size: 132px;
}

.loading-logo img {
  max-inline-size: 84px;
  max-block-size: 84px;
  object-fit: contain;
}

.loading-logo::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  border: 2px solid rgb(30 136 229 / 0.25);
  animation: pulse 1.8s ease-out infinite;
}

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

.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, #1e88e5);
  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;
}

.loading-message {
  margin: 0.2rem 0 0;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.loading-refresh-message {
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.loading-refresh-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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 pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}
