/**
 * AnimateBox.dev — Liquid Dye Button
 * https://animatebox.dev
 *
 * Host stage + hit target. The water / dye look is drawn on the WebGL canvas.
 */

.ab-liquid-dye-button {
  --ab-ldb-font: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --ab-ldb-bg: #0b0b0c;
  --ab-ldb-fg: #f3f1ec;

  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1200 / 800;
  overflow: hidden;
  touch-action: pan-y;
  font-family: var(--ab-ldb-font);
  background: var(--ab-ldb-bg);
  color: var(--ab-ldb-fg);
  -webkit-font-smoothing: antialiased;
}

.ab-liquid-dye-button__stage {
  position: absolute;
  pointer-events: none;
}

.ab-liquid-dye-button__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ab-liquid-dye-button__hit {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  outline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.ab-liquid-dye-button__hit:focus {
  outline: none;
}

.ab-liquid-dye-button__hit:focus-visible {
  outline: 2px solid #f3f1ec;
  outline-offset: 4px;
}
