:root {
  color-scheme: dark;
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #232324;
  color: #f2f0ed;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #232324;
}

a {
  color: #d7b98d;
}

#app-loading {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  text-align: center;
  background: #232324;
}

#app-loading img {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
}

#app-loading h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

#app-loading p {
  max-width: 36rem;
  margin: 0;
  color: #d3d0cc;
}

#app-loading .loading-help {
  margin-top: 16px;
  color: #9e9a94;
  font-size: 0.9rem;
}

.loader {
  width: 34px;
  height: 34px;
  margin-top: 22px;
  border: 3px solid #4c4a47;
  border-top-color: #d7b98d;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.load-failed .loader {
  display: none;
}

.load-failed #app-loading-status {
  color: #ffb4ab;
}

.static-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
  line-height: 1.65;
}

.static-page h1,
.static-page h2 {
  line-height: 1.2;
}

.static-page h2 {
  margin-top: 2rem;
}

.static-page .eyebrow {
  color: #d7b98d;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.static-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2.5rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .loader { animation: none; }
}
