:root {
  color: #f5f5f5;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #0b0f16;
}

canvas {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.panel {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 14, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#angles {
  top: 112px;
}

.status {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.status.show {
  opacity: 1;
}

.controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(7, minmax(84px, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  z-index: 2;
}

.controls button {
  font-size: 16px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 24, 35, 0.9);
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}

.controls button:active {
  transform: scale(0.97);
}

.controls button.fire {
  grid-column: span 7;
  background: #ed6a5a;
  color: #111;
}

.controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
