@font-face {
  font-family: Tech;
  src: url("assets/assets/fonts/santech-regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: Genhead;
  src: url("assets/assets/fonts/genhead-semibild.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

/* Bootstrap mirrors of lib/theme.dart; Flutter is not running yet. */
:root {
  --background-dark: #0D0D0D;
  --brand-purple: #6064A6;
  --text-primary: #FFFFFF;
  --text-secondary: rgb(255 255 255 / 70%);
  color-scheme: dark;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background-dark);
  color: var(--text-primary);
  font-family: Tech;
  font-size: 16px;
  scrollbar-color: var(--brand-purple) var(--background-dark);
}

.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  color: var(--text-secondary);
  text-align: center;
}

.loading-logo {
  width: 180px;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
}

.loading-name {
  max-width: 100%;
  color: var(--text-primary);
  font-family: Genhead;
  font-size: clamp(20px, 7vw, 32px);
  font-weight: 700;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--brand-purple);
  border-right-color: transparent;
  border-radius: 999px;
  animation: loading-spin 1s linear infinite;
}

noscript {
  display: block;
  padding: 24px;
}

.firebase-emulator-warning {
  box-sizing: border-box !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--background-dark) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--brand-purple) !important;
  border-radius: 10px 10px 0 0 !important;
  font: 12px/16px Tech !important;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
}
