* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background: linear-gradient(180deg, #000428 0%, #004e92 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}

#game-container {
  position: relative;
  width: 800px;
  max-width: 95vw;
  aspect-ratio: 4/5;
  background: #000;
  border: 3px solid #00ffff;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(0, 100, 255, 0.3);
  overflow: hidden;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

#game-ui {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid #00ffff;
  z-index: 10;
}

.ui-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.label {
  font-size: 10px;
  color: #00ffff;
  letter-spacing: 2px;
}

#score, #level, #lives {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px #00ffff;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 20;
  text-align: center;
  padding: 20px;
}

.screen.hidden {
  display: none;
}

.screen h1 {
  font-size: 48px;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.screen p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #aaa;
}

.controls {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.controls div {
  background: rgba(0, 255, 255, 0.1);
  padding: 10px 15px;
  border: 1px solid #00ffff;
  border-radius: 4px;
  font-size: 14px;
}

button {
  background: #00ffff;
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
}

button:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffff;
}

#level-screen h1 {
  font-size: 64px;
}

#final-score {
  color: #00ffff;
  font-size: 32px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .screen h1 {
    font-size: 32px;
  }
  
  .screen p {
    font-size: 14px;
  }
  
  .controls {
    font-size: 12px;
  }
  
  button {
    padding: 12px 30px;
    font-size: 16px;
  }
}