html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

.canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1 / 1;
  width: 110vmax;   /* Fill based on the larger dimension */
  height: 110vmax;
  touch-action: none;
}

/* Minimal slider styling */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Mobile: larger touch targets */
@media (max-width: 768px), (pointer: coarse) {
  input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }
  input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }
}
