:root {
  color-scheme: dark;
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  background: #080b18;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: radial-gradient(circle at 50% 25%, #22264e 0, #080b18 65%);
}

body {
  display: grid;
  place-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#game-shell {
  position: relative;
  width: min(100vw, calc(100vh * 941 / 1672));
  height: min(100vh, calc(100vw * 1672 / 941));
  box-shadow: 0 0 48px #000b;
  background: #111;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #080b18;
  letter-spacing: .04em;
}

#loading.hidden { display: none; }

@media (min-aspect-ratio: 941/1672) {
  #game-shell { border-radius: 18px; overflow: hidden; }
}
