body{
  margin:0;
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  background:linear-gradient(to bottom, Red,gold);
  font-family:'Arial Rounded MT Bold', 'Arial', sans-serif;
  color:white;
  overflow:hidden;
}

h1{
  color:#0bece8;
  text-shadow: 0 0 10px Red;
  margin-bottom:10px;
}

.score-container{
  display:flex;
  gap:12px;
  margin-bottom:10px;
}

.score-box{
  background: rgba(255,255,255,0.03);
  padding:8px 12px;
  border-radius:8px;
  border: 1px solid rgba(77,238,234,0.2);
  color:#e6ffff;
  font-weight:700;
}

.game-container{
  position:relative;
  width:800px;
  height:500px;
  border: 3px solid #4deeea;
  border-radius:10px;
  overflow:hidden;
  background:#000;
  box-shadow: 0 0 20px #4deeea;
}

/* stars container (absolutely positioned behind canvas) */
.starts{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1;
}

.star{
  position:absolute;
  background: red;
  border-radius:50%;
  filter: blur(0.6px);
  z-index:1;
}

/* canvas sits above stars */
#gamecanvas{
  position:relative;
  z-index:2;
  display:block;
  background: black;
}

/* game over overlay */
.game-over{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: black(0,0,0,0.6);
  z-index:3;
  display:none; /* hidden by default */
}

.game-over-inner{
  background: linear-gradient(180deg, rgba(10,10,40,0.95), rgba(20,20,60,0.95));
  border-radius:12px;
  padding:22px 28px;
  text-align:center;
  border: 2px solid gold;
  box-shadow: 0 0 20px rgba(77,238,234,0.12);
}

.controls{
  margin-top:10px;
  color:#dfefff;
}

button{
  margin-top:12px;
  padding:8px 14px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  background:teal;
  color:beige;
  font-weight:700;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
