html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #050608;
  color: #ddd;
  font: 14px ui-monospace, Menlo, monospace;
}
#bevy {
  display: block;
  width: 100vw;
  height: 100vh;
  outline: none;
}
#overlay {
  position: fixed;
  top: 1em;
  left: 1em;
  right: 1em;
  max-width: 50em;
  z-index: 10;
  pointer-events: none;
}
#overlay > * { pointer-events: auto; }
#status {
  padding: 0.5em 0.8em;
  background: rgba(20, 22, 28, 0.85);
  border: 1px solid #333;
  backdrop-filter: blur(4px);
}
button {
  margin-top: 1em;
  padding: 0.6em 1em;
  background: #2a1212;
  color: #f88;
  border: 1px solid #642;
  font: inherit;
  cursor: pointer;
}
button:hover { background: #3a1818; }
#panic {
  margin-top: 1em;
  padding: 1em;
  background: #200;
  border: 1px solid #722;
  color: #faa;
  white-space: pre-wrap;
  display: none;
}
#panic.shown { display: block; }
#errors {
  margin-top: 1em;
  max-height: 40vh;
  overflow-y: auto;
}
#errors:empty { display: none; }
.err-line {
  padding: 0.4em 0.6em;
  margin-bottom: 0.25em;
  background: #2a0c0c;
  border-left: 3px solid #f66;
  color: #faa;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}
#bevy-starter-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  z-index: 9998;
  user-select: none;
}
#bevy-starter-loading progress {
  display: block;
  width: 240px;
  height: 6px;
  margin: 8px auto 0;
  appearance: none;
  background: #222;
  border: none;
}
#bevy-starter-loading progress::-webkit-progress-bar { background: #222; }
#bevy-starter-loading progress::-webkit-progress-value { background: #6f9; }
#bevy-starter-loading progress::-moz-progress-bar { background: #6f9; }
body.loaded #bevy-starter-loading { display: none; }
#version-switcher {
  position: fixed;
  top: 1em;
  right: 1em;
  z-index: 20;
}
#version-select {
  padding: 0.35em 0.6em;
  background: rgba(20, 22, 28, 0.85);
  border: 1px solid #333;
  color: #ddd;
  font: 12px ui-monospace, Menlo, monospace;
  backdrop-filter: blur(4px);
  cursor: pointer;
}
#version-select:hover { border-color: #555; }
