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

body {
  background: #1a3a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  user-select: none;
}

#app {
  background: #2d5a2d;
  border-radius: 20px;
  padding: 20px 30px 30px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  text-align: center;
}

h1 {
  color: #f5d742;
  font-size: 28px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 #3a2a0a;
}

#top-bar {
  display: flex;
  justify-content: space-around;
  background: #3d2b1a;
  color: #f0e6d3;
  padding: 10px 0;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 16px;
}
#top-bar strong { color: #f5d742; }

canvas {
  display: block;
  margin: 0 auto;
  background: #5a3a1a;
  border-radius: 12px;
  border: 4px solid #4a2a0a;
  cursor: default;
}

#toolbar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tool-btn {
  padding: 10px 18px;
  font-size: 15px;
  background: #4a7a4a;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.15s;
  box-shadow: 0 3px 0 #2a5a2a;
}
.tool-btn:hover { background: #5a9a5a; transform: translateY(-1px); }
.tool-btn:active { transform: translateY(2px); box-shadow: none; }
.tool-btn.active {
  background: #f5d742;
  color: #2a1a0a;
  box-shadow: 0 3px 0 #a58a20;
}
.tool-btn.danger { background: #8a3a3a; box-shadow: 0 3px 0 #5a2a2a; }
.tool-btn.danger:hover { background: #aa4a4a; }
.tool-btn.danger.active { background: #e05050; color: #fff; box-shadow: 0 3px 0 #a03030; }

#status {
  margin-top: 10px;
  color: #c0d0a0;
  font-size: 14px;
  min-height: 20px;
}
