/* Mission Control Web template (WebGPU) — branded loader styles */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #0B0B0F;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

#mc-root {
  position: relative;
  width: 100%;
  height: 100%;
}

#unity-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #0B0B0F;
  outline: none;
}

/* Branded loader — centered column: logo, title, progress bar */
#mc-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #0B0B0F;
  z-index: 10;
  transition: opacity 300ms ease;
}

#mc-loader.mc-hidden {
  opacity: 0;
  pointer-events: none;
}

#mc-logo {
  width: 128px;
  height: 128px;
  user-select: none;
}

#mc-title {
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.9;
}

#mc-progress-track {
  width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

#mc-progress-fill {
  height: 100%;
  width: 0%;
  background: #E6007E;
  transition: width 120ms linear;
}

/* Unsupported-browser fallback */
#mc-unsupported {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B0B0F;
  z-index: 20;
}

#mc-unsupported[hidden] {
  display: none;
}

#mc-unsupported .mc-card {
  max-width: 480px;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(230, 0, 126, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

#mc-unsupported h1 {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: #E6007E;
}

#mc-unsupported p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
