html,
body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #8fc9ff 0%, #d7f0ff 32%, #6eb17a 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

canvas {
  display: block;
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  color: #f8f2df;
}

#toolbar {
  display: inline-flex;
  gap: 8px;
  margin: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 248, 221, 0.22);
  border-radius: 14px;
  background: rgba(35, 45, 49, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}

.tool {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #f6e7af;
  color: #332718;
  cursor: pointer;
  font-weight: 700;
}

.tool.active {
  background: #ffb84d;
}

#hud {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 248, 221, 0.22);
  border-radius: 14px;
  background: rgba(25, 30, 32, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}

#hud div + div {
  margin-top: 6px;
}
