JSFiddle - React, Tailwind, and code Playground

HTML

<label>
<input type="radio" name="item" value="1"> Камень
</label>
<label>
<input type="radio" name="item" value="2"> Ножницы
</label>
<label>
<input type="radio" name="item" value="3"> Бумага
</label>
<input type="button" id="button" value="Button">
<div id="res">

</div>

CSS

label{display:block}

JavaScript

button.onclick=function(){
	const user=+document.querySelector('[name="item"]:checked').value;
	const npc=Math.floor(Math.random()*3)+1;
	const userWin=npc===(user%3+1);
	
	res.textContent='you '+(userWin?'win':'lost');
};