:root {
  color-scheme: dark;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  background: #111217;
  color: #f6eaa2;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(105, 36, 24, 0.36), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(26, 82, 63, 0.26), transparent 30%),
    linear-gradient(135deg, #14151c 0%, #2a1012 48%, #0f211d 100%);
}

.game-shell {
  position: relative;
  width: min(100vw, calc(100vh * 4 / 3));
  aspect-ratio: 4 / 3;
  max-width: 1280px;
  max-height: 960px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  background: #050505;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  cursor: none;
  background: #000;
}

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffe572;
  font-size: clamp(22px, 5vw, 44px);
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 4px 0 #000, 0 0 22px rgba(255, 230, 100, 0.45);
  background: #050505;
}

.loading.is-hidden {
  display: none;
}
