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

body {
  font-family: 'Courier New', monospace;
  background: linear-gradient(to bottom, #0a0a1a 0%, #1a0a2e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

#game-container {
  position: relative;
  width: 800px;
  height: 600px;
  background: #000;
  border: 4px solid #00ff88;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.4), 0 0 80px rgba(0, 255, 136, 0.2);
  overflow: hidden;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0a0a1a 0%, #000 100%);
}

#game-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.hud {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  font-size: 18px;
  letter-spacing: 2px;
}

.hud-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.label {
  color: #00ff88;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

#score, #level, #lives {
  color: #fff;
  font-weight: bold;
  min-width: 40px;
  text-align: right;
}

.screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #00ff88;
  border-radius: 12px;
  padding: 40px 60px;
  text-align: center;
  pointer-events: all;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.5);
  min-width: 350px;
}

.screen.hidden {
  display: none;
}

.screen h1 {
  font-size: 48px;
  color: #00ff88;
  text-shadow: 0 0 20px rgba(0, 255, 136, 1);
  margin-bottom: 20px;
  letter-spacing: 4px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(0, 255, 136, 1); }
  50% { opacity: 0.7; text-shadow: 0 0 30px rgba(0, 255, 136, 0.8); }
}

.screen p {
  color: #aaa;
  margin: 10px 0;
  font-size: 16px;
  letter-spacing: 1px;
}

.final-score, .level-info {
  margin: 20px 0;
  font-size: 24px;
  color: #fff;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.final-score span:last-child, .level-info span:last-child {
  color: #00ff88;
  font-weight: bold;
  font-size: 28px;
}

button {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
  pointer-events: all;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 255, 136, 0.6);
  background: linear-gradient(135deg, #00ffaa, #00ff88);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.4);
}

@media (max-width: 850px) {
  #game-container {
    width: 95vw;
    height: 70vh;
    max-height: 600px;
  }
  
  .screen {
    padding: 30px 40px;
    min-width: 280px;
  }
  
  .screen h1 {
    font-size: 36px;
  }
  
  button {
    font-size: 16px;
    padding: 12px 30px;
  }
}