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

body {
  background: #1a1a2e;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#game-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

#gameCanvas {
  display: block;
  background: #87ceeb;
  border: 4px solid #ff6b35;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#ui-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  pointer-events: none;
}

#health-bar, #chakra-bar {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  min-width: 60px;
}

.bar-container {
  width: 200px;
  height: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3333, #ff6666);
  transition: width 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.bar-fill.chakra {
  background: linear-gradient(90deg, #3366ff, #66aaff);
}

#level-info {
  position: absolute;
  top: 20px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.level-label, .enemies-label {
  background: rgba(0, 0, 0, 0.8);
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: bold;
  border: 2px solid #ff6b35;
  text-align: center;
}

.enemies-label {
  color: #ff6666;
}

#ultimate-indicator {
  position: absolute;
  top: 100px;
  left: 0;
  opacity: 0;
  animation: pulse 1s infinite;
}

#ultimate-indicator.active {
  opacity: 1;
}

.ultimate-label {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  color: #1a1a2e;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  border: 2px solid #ff6b35;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#controls-hint {
  position: absolute;
  bottom: 20px;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  border: 2px solid #ff6b35;
}

#controls-hint p {
  margin: 3px 0;
}

#game-over, #level-complete {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  border: 4px solid #ff6b35;
  pointer-events: all;
}

#game-over.hidden, #level-complete.hidden {
  display: none;
}

#game-over h1, #level-complete h1 {
  color: #ffd700;
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

#final-score, #level-stats {
  color: white;
  font-size: 24px;
  margin-bottom: 30px;
}

#restart-btn, #next-level-btn {
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: 'Courier New', monospace;
}

#restart-btn:hover, #next-level-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}
