/* System fallback avoids any runtime dependency on a third-party font CDN. */
html,
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

#loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  transition: opacity 0.3s ease;
}

#loading.done {
  pointer-events: none;
  opacity: 0;
}

#loading .dot {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #039855;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

#loading .dot:nth-child(2) {
  animation-delay: 0.15s;
}

#loading .dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    opacity: 0.4;
    transform: scale(0.5);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}
