.fluid-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.fluid-glass__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fluid-glass__handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.fluid-glass[data-interaction='drag'] .fluid-glass__handle {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.fluid-glass[data-grabbing] .fluid-glass__handle {
  cursor: grabbing;
}

.yarn-fluid-glass-root[data-touch='true'] .fluid-glass__handle {
  pointer-events: auto;
  touch-action: none;
}

.fluid-glass[data-interaction='static'][data-clickable] .fluid-glass__handle {
  pointer-events: auto;
  cursor: pointer;
}

.fluid-glass__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: pre-line;
}

.fluid-glass__content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fluid-glass__content > * {
  pointer-events: auto;
}

/* Lightweight optics for touch browsers that cannot start the shader. */
.fluid-glass-flat {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  border-radius: 50%;
  box-shadow: 0 5px 12px #0006;
  cursor: grab;
  transition: border-radius 1.6s cubic-bezier(.25,.75,.3,1);
}
.fluid-glass-flat[data-shape="1"] { border-radius: 60% 40% 62% 38% / 55% 54% 46% 45%; }
.fluid-glass-flat[data-shape="2"] { border-radius: 32%; }
.fluid-glass-flat img {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.fluid-glass-flat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 28% 15%, #fff7, transparent 39%),
              linear-gradient(150deg, #fff3, transparent 40% 68%, #97ffe329);
  box-shadow: inset 1px 2px 3px #fff9, inset 4px 0 6px #ee55ca78,
              inset -4px -3px 6px #6affff8c, inset 0 -2px 3px #0008;
}

