#sandpile-world {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 1;
  background: var(--bg);
  outline: 1px solid var(--line);
  image-rendering: pixelated;
  cursor: crosshair;
}

.sandpile-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .25rem 1.25rem;
  margin-bottom: 1rem;
}

.tool .sandpile-controls input[type="range"] { padding: 0; accent-color: var(--fg); }
.sandpile-drop { display: flex; gap: .5rem; align-items: center; }
.sandpile-drop input { min-width: 0; flex: 1; }
.sandpile-actions { display: flex; flex-wrap: wrap; }
#sandpile-status { color: var(--mute); font-family: var(--mono); font-size: .85rem; }
