/* Falling Sand — keeps the Labs green chrome, sized for a phone thumb. */
.sand-page { max-width: 720px; }
.sand-lead { font-size: 1rem; }
.sand-wrap { width: 100%; max-width: 640px; padding: 0.85rem; }
.sand-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.sand-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 2px solid #39ff5a;
  border-radius: 14px;
  background: linear-gradient(180deg, #123a1a 0%, #080808 100%);
  color: #f0fff0;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sand-tool[aria-pressed="true"],
.sand-tool:hover,
.sand-tool:focus-visible {
  background: linear-gradient(180deg, #b8ffb8 0%, #39ff5a 100%);
  color: #001408;
  border-color: #e8ffe8;
  outline: none;
}
.sand-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.sand-swatch--eraser {
  background:
    linear-gradient(45deg, #333 25%, #ccc 25%, #ccc 50%, #333 50%, #333 75%, #ccc 75%)
    0 0 / 8px 8px;
}
.sand-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
}
.sand-brush {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #c8ffd4;
  font-size: 0.95rem;
}
.sand-brush input[type="range"] {
  width: 120px;
  accent-color: #39ff5a;
}
.sand-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: #020a04;
  border: 2px solid #39ff5a;
  border-radius: 10px;
  cursor: crosshair;
  box-shadow: 0 0 14px rgba(0, 255, 80, 0.2);
}
.sand-controls .btm {
  min-height: 44px;
  padding: 0.4rem 0.95rem;
}
.sand-tool--grid { border-style: dashed; }
.sand-heatview input[type="checkbox"],
.sand-edgevoid input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #39ff5a;
}
.sand-temp {
  color: #c8ffd4;
  font-size: 0.95rem;
  min-width: 6.5rem;
  font-variant-numeric: tabular-nums;
}
.sand-msg { color: #ffe566; font-weight: 700; font-size: 0.95rem; }
