body {
	background-color: #000;
}

#game {
	position: relative;
	width: 640px;
	height: 480px;
	margin: 20px auto;
	background-image: url(bg.gif);
	background-repeat: no-repeat;
	background-size: cover; /* または contain にしてもOK */
	overflow: hidden;
	border: 2px solid white;
}

#fighter {
	position: absolute;
	left: 300px;
	top: 400px;
	width: 32px;
	height: 32px;
}

.beam {
	position: absolute;
	width: 8px;
	height: 32px;
}

.enemy {
	position: absolute;
	width: 32px;
	height: 32px;
}

#score {
	position: absolute;
	top: 10px;
	left: 10px;
	color: white;
	font-size: 20px;
	font-family: 'Arial', sans-serif;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 5px 10px;
	border-radius: 5px;
	z-index: 10;
}
.enemybeam {
	position: absolute;
	width: 6px;
	height: 16px;
	background-color: yellow;
}

#result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background: white;
  border: 5px solid #444;
  text-align: center;
  font-size: 28px;
  padding: 40px 20px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}


#result button {
  margin-top: 20px;
  font-size: 20px;
}