@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
  font-family: 'VT323', monospace;
}

canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
  cursor: crosshair;
}

.toolbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.tbtn {
  font-family: 'VT323', monospace;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,0.07);
  letter-spacing: 0.05em;
  transition: background 0.1s ease;
}

.tbtn:hover { background: rgba(255,255,255,0.15); }
.tbtn.active { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.6); }

.hint {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 10;
}
