:root {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--surface-base, #0f141f);
  color: var(--text-primary, #cfd4dc);
  font-family: var(--font-family-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

button {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.loading-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.45));
}

.loading-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loading-title {
  font-size: 2.8rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary, #f4f6fb);
}

.loading-status {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted, #aeb3c4);
}

.loading-card {
  margin-top: 12px;
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(13, 16, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.95rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #6ce3ff;
  animation: spin 0.9s linear infinite;
}

.phrase-controls {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted, #8f96a9);
}

.phrase-controls button {
  color: #8fb5ff;
  cursor: pointer;
}

.loading-error {
  margin-top: 12px;
  color: #ff9ea9;
  font-size: 0.95rem;
}

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