body { margin: 0; overflow: hidden;}
canvas { width: 100%; height: 100% }

#menu-screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#menu-screen button {
  padding: 12px 24px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}

#hud {
  position: absolute;
  top: 10px; left: 10px;
  color: white;
  z-index: 5;
  display: none;
  font-size: 1.2em;
}

#hud div {
  margin-bottom: 8px;
}

#top-stats {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  font-size: 1.2em;
  z-index: 1000;
}

#GameOver {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 30px;
  border-radius: 10px;
  font-size: 2em;
  text-align: center;
  display: none;
}

#GameOver button {
  padding: 12px 24px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}

.perk-hud {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 12px;
    z-index: 10;
    display: none;
  }
  
.perk-card {
background: #222;
color: #fff;
padding: 15px;
border: 2px solid #888;
border-radius: 10px;
width: 200px;
cursor: pointer;
transition: transform 0.2s, border-color 0.2s;
}

.perk-card:hover {
transform: scale(1.05);
border-color: gold;
}

.perk-card h3 {
margin: 0;
font-size: 1.2em;
}

.perk-card p {
font-size: 0.9em;
margin-top: 8px;
}