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

body {
  background: #0a0e1a;
  color: #e0e0e0;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#game-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#canvas {
  display: block;
  background: #0a0e1a;
  cursor: default;
  image-rendering: auto;
}

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

#ui-overlay > * {
  pointer-events: auto;
}

#controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}

.ctrl-btn {
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: #aaa;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-btn:hover, .ctrl-btn.active {
  background: rgba(255,220,50,0.15);
  border-color: #ffd632;
  color: #ffd632;
}

.pause-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background: rgba(10,14,26,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ccc;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pause-btn:hover {
  border-color: #ffd632;
  color: #ffd632;
}

#commentary-bar {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(10,14,26,0.88);
  border: 1px solid rgba(255,220,50,0.2);
  border-radius: 6px;
  padding: 6px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: #ffd632;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: 0.5px;
}

#main-footer {
  margin-top: 12px;
  padding: 12px;
  text-align: center;
}

#main-footer a {
  color: #555;
  text-decoration: none;
  font-size: 12px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

#main-footer a:hover {
  color: #ffd632;
}

@media (max-width: 768px) {
  #commentary-bar {
    font-size: 11px;
    padding: 4px 10px;
  }
  .ctrl-btn {
    font-size: 9px;
    padding: 4px 8px;
  }
}