:root {
  color-scheme: dark;
  background: #10150f;
  font-family: system-ui, sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  position: fixed;
  inset: 0;
}

#game-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #10150f;
}

#game-stage {
  position: relative;
  width: min(100%, 177.777778vh);
  height: min(100%, 56.25vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#loading {
  position: absolute;
  z-index: 2;
  inset: 1rem auto auto 1rem;
  color: #e7f2d6;
}

#loading.error {
  color: #ff9c8b;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}
