* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #05060f;
  overflow: hidden;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 700px at 50% 30%, #0b1030 0%, #05060f 60%, #02030a 100%);
}

canvas#game {
  display: block;
  /* Scale to fit the window while preserving the 800x600 (4:3) aspect ratio */
  width: min(100vw, 133.333vh);
  height: min(75vw, 100vh);
  aspect-ratio: 4 / 3;
  background: #070818;
  border-radius: 6px;
  box-shadow: 0 0 42px rgba(0, 229, 255, 0.25), 0 0 120px rgba(255, 0, 128, 0.12);
  touch-action: none;
  cursor: none;
  outline: none;
}
