:root {
  color-scheme: light;
  --bg: #070c0f;
  --ink: #d9f7d9;
  --accent: #7cf58b;
  --glow: rgba(124, 245, 139, 0.35);
  --panel: rgba(5, 15, 10, 0.7);
  font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0e1c25 0%, #050708 60%);
  color: var(--ink);
  height: 100vh;
  overflow: hidden;
}

canvas {
  display: block;
  margin: 0 auto;
  background: transparent;
  width: min(100vw, 1200px);
  height: auto;
  image-rendering: pixelated;
}

.hud {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--panel);
  padding: 12px 16px;
  border: 1px solid rgba(124, 245, 139, 0.4);
  box-shadow: 0 0 18px var(--glow);
}

.title {
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.status {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.bot-controls {
  display: grid;
  grid-template-columns: 28px minmax(58px, auto) 28px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
}

.bot-controls button {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

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

.bot-controls span {
  text-align: center;
  white-space: nowrap;
}

.scoreboard {
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-line;
}

.kill-log {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 320px;
  background: var(--panel);
  border: 1px solid rgba(124, 245, 139, 0.4);
  box-shadow: 0 0 18px var(--glow);
  padding: 12px;
}

.messages {
  height: 140px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.4;
}

.messages div {
  margin-bottom: 6px;
}

button {
  font-family: inherit;
  padding: 6px 8px;
  background: #06120a;
  border: 1px solid rgba(124, 245, 139, 0.5);
  color: var(--ink);
}

button {
  cursor: pointer;
  background: linear-gradient(120deg, #0c2514, #0b1c13);
}

.controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 12px;
  background: var(--panel);
  padding: 10px 14px;
  border: 1px solid rgba(124, 245, 139, 0.4);
  box-shadow: 0 0 18px var(--glow);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  canvas {
    width: 100vw;
  }

  .hud,
  .kill-log,
  .controls {
    position: static;
    margin: 12px;
  }
}
