*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
}

#root {
  min-height: 100vh;
  width: 100%;
}

#app-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #000;
  z-index: 9999;
}

#app-loading .spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #0088cc;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

#app-loading .label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

#app-error {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #000;
  padding: 2rem;
  z-index: 9999;
  text-align: center;
}

#app-error:not([hidden]) {
  display: flex;
}

#app-error .err-title {
  color: #ff6b7a;
  font-size: 1.1rem;
}

#app-error .err-detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  max-width: 400px;
}

#app-error button {
  padding: 0.6rem 1.5rem;
  background: #0088cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
}
