body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 16px;
}

header { margin-bottom: 12px; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

/* Keep side-by-side everywhere */
.canvases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

figure { margin: 0; }

canvas {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#status { opacity: 0.8; }

/* Mobile tweaks (BUT still side-by-side) */
@media (max-width: 600px) {
  body { margin: 10px; }

  .controls {
    gap: 6px;
  }

  /* Make inputs/buttons not microscopic */
  .controls input,
  .controls button {
    padding: 10px 12px;
    font-size: 16px; /* prevents iOS zoom */
  }

  /* Tighten spacing so 2 canvases fit nicely */
  .canvases { gap: 8px; }
}
