:root {
  --haitu-selection-color: #ffd1e2;
}

::selection {
  color: #182238;
  background-color: var(--haitu-selection-color);
  text-shadow: none;
}

.haitu-glass-pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483646;
  width: 32px;
  height: 32px;
  pointer-events: none;
  user-select: none;
  transform: translate3d(-100px, -100px, 0);
}

.haitu-glass-pointer[hidden] { display: none !important; }
.haitu-glass-pointer * { pointer-events: none; }

.haitu-pointer-physics {
  position: absolute;
  inset: 0;
  transform: var(--haitu-pointer-shape, matrix(1, 0, 0, 1, 0, 0));
  transform-origin: center;
}

.haitu-pointer-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}

.haitu-pointer-optics {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.haitu-pointer-sampler {
  position: absolute;
  inset: -4px;
  -webkit-backdrop-filter: blur(6.6px) saturate(135%);
  backdrop-filter: var(--haitu-pointer-refraction, blur(6.6px)) saturate(135%);
}

.haitu-pointer-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(247, 250, 255, .38), rgba(247, 250, 255, .12));
  box-shadow: inset 0 0 0 .7px rgba(255, 255, 255, .62), 0 3px 10px rgba(16, 26, 48, .16);
}

.haitu-pointer-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.haitu-glass-pointer.has-refraction .haitu-pointer-surface::after { box-shadow: 0 3px 10px rgba(16, 26, 48, .16); }
.haitu-glass-pointer[data-kind="interactive"] .haitu-pointer-surface { transform: scale(1.18); }
.haitu-glass-pointer[data-kind="media"] .haitu-pointer-surface { transform: scale(1.08); }
.haitu-glass-pointer.is-pressed .haitu-pointer-surface { transform: scale(.88); }

.haitu-pointer-hotspot {
  position: absolute;
  left: 15px;
  top: 15px;
  z-index: 2;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #243277;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85);
}

@media (hover: hover) and (pointer: fine) {
  html.haitu-pointer-active, html.haitu-pointer-active * { cursor: none !important; }
  html.haitu-pointer-selecting, html.haitu-pointer-selecting * { cursor: text !important; }
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .haitu-glass-pointer { display: none !important; }
  html.haitu-pointer-active, html.haitu-pointer-active * { cursor: auto !important; }
  html.haitu-pointer-selecting, html.haitu-pointer-selecting * { cursor: text !important; }
}
