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

body {
  background: #1a1209;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(180deg, #3d2b1f 0%, #2a1d12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
  border-bottom: 2px solid #5a3d25;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.tool-group {
  position: relative;
}

.tool-btn {
  padding: 8px 16px;
  border: 1px solid #6b4c30;
  border-radius: 6px;
  background: #4a3322;
  color: #d4b896;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.tool-btn:hover {
  background: #5a4332;
  border-color: #8b6c50;
}

.tool-btn.active {
  background: #6b4c30;
  border-color: #c49a6c;
  color: #fff;
  box-shadow: 0 0 8px rgba(196,154,108,0.3);
}

.restart-btn {
  background: #5a2020;
  border-color: #8b3030;
  color: #e8a0a0;
  margin-left: 16px;
}

.restart-btn:hover {
  background: #6b2a2a;
  border-color: #ab4040;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: #3d2b1f;
  border: 1px solid #6b4c30;
  border-radius: 6px;
  padding: 6px;
  gap: 4px;
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.submenu.visible {
  display: flex;
}

.food-type-btn {
  padding: 5px 10px;
  border: 1px solid #5a3d25;
  border-radius: 4px;
  background: #4a3322;
  color: #c4a080;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.food-type-btn:hover {
  background: #5a4332;
}

.food-type-btn.active {
  background: #6b4c30;
  border-color: #c49a6c;
  color: #fff;
}

#stats-bar {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(26,18,9,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 10;
  border-bottom: 1px solid #3d2b1f;
  font-size: 13px;
  color: #b89a7a;
  letter-spacing: 0.5px;
}

canvas {
  display: block;
  cursor: crosshair;
}
