html,
body {
  margin: 0;
  padding: 0;
  background: #111;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.initial-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 3px 0 #000;
  transition: opacity 260ms ease;
}

.initial-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-dot {
  animation: loading-dot-blink 1.1s infinite;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.18s;
}

.loading-dot:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes loading-dot-blink {
  0%,
  20% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

#game {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  image-rendering: pixelated;
}
