body {
  margin: 0;
  background: #05050a;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  display: flex;
  flex-direction: column;
  vertical-align: center;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

#game {
  position: relative;
  width: 75vw;
  height: 75vh;
  background: linear-gradient(to bottom, #001f1f, #004040);
  border: 4px solid #00ff00;
  box-shadow: 0 0 20px rgba(0,255,200,0.6);
  overflow: hidden;
  border-radius: 16px;
}

#virus {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: red;
  top: 50%;
  left: 100px;
  border-radius: 4px;
  box-shadow: 0 0 10px red;
  display: flex;
  align-items: center;
  justify-content: center;
}

.virus-emoji {
  font-size: 40px;
  pointer-events: none;
}

.scanner-pipe {
  position: absolute;
  width: 60px;
  background: #004040;
  right: 0;
  box-shadow: 0 0 15px #00ffff;
  border: 4px solid #00ffff;
  border-radius: 4px;
  z-index: 1;
}

.scanner-top {
  top: 0;
}

.scanner-bottom {
  bottom: 0;
}

.scanner-pipe::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 255, 0) 0%,
    rgba(0, 255, 255, 0.8) 50%,
    rgba(0, 255, 255, 0) 100%
  );
  animation: scan-vertical 2s linear infinite;
}

@keyframes scan-vertical {
  0% {
    top: 10%;
  }
  100% {
    top: 90%;
  }
}

.firewall {
  position: absolute;
  width: 60px;
  height: 200px;
  background: red;
  right: 0;
  top: 0;
  box-shadow: 0 0 10px orange;
  border: 4px solid red;
  border-radius: 4px;
  z-index: 1;
}

.loot-message {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 24px;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  pointer-events: none;
  z-index: 10;
}

#game-over {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(5, 5, 10, 0.9);
  padding: 20px;
  text-align: center;
  font-size: 24px;
  border-radius: 12px;
  z-index: 10;
  border: 2px solid red;
  color: red;
}

#start-screen {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(5, 5, 10, 0.9);
  padding: 20px;
  text-align: center;
  font-size: 24px;
  border-radius: 12px;
  z-index: 10;
  border: 2px solid #00ff00;
  color: #00ff00;
}

#restart-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: red;
  border: none;
  color: #001f1f;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

#start-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #00ff00;
  border: none;
  color: #001f1f;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

#top-controls {
  position: absolute;
  top: 10px;
  left: 10px; 
  display: flex;
  gap: 4px;
  z-index: 10;
}

#pause-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

#volume-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

#score-lives-container {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #00ff00;
  font-size: 18px;
  font-weight: bold;
  text-align: right;
  z-index: 10;
}

#score {
  font-size: 18px;
}

.hidden {
  display: none;
}