.cursor-effects {
  position:fixed;inset:0;pointer-events:none;z-index:11998;contain:layout style;
  --cursor-ink:var(--midnight);
  --cursor-inverse:var(--linen);
  --cursor-halo:rgb(242 236 225 / .5);
  --cursor-edge:0 0 0 1px var(--cursor-halo);
}
.cursor-effects[data-cursor-surface="dark"] {
  --cursor-ink:var(--linen);
  --cursor-inverse:var(--midnight);
  --cursor-halo:rgb(28 28 28 / .60);
}
.cursor-effects[data-cursor-detail="mixed"] { --cursor-edge:0 0 0 .85px var(--midnight),0 0 0 1.6px var(--linen); }

.cursor-dot,.cursor-ring,#cursor-fog {
  position:fixed;
  pointer-events:none;
  user-select:none;
}
#cursor-fog { inset:0;width:100%;height:100%;z-index:11998;contain:strict; }
.floating-preview { z-index:11999; }
.cursor-dot,.cursor-ring {
  inset:0 auto auto 0;
  opacity:0;
  transition:opacity 145ms ease-out;
  will-change:transform,opacity;
}
.cursor-ring { width:34px;height:34px;margin:-17px;z-index:12000; }
.cursor-dot { width:6px;height:6px;margin:-3px;z-index:12001; }
.custom-cursor :is(.cursor-dot,.cursor-ring) { opacity:1;transition-duration:0ms; }

.cursor-dot::before,.cursor-dot::after {
  content:'';
  position:absolute;
  left:50%;top:50%;
  background:var(--cursor-ink);
  box-shadow:var(--cursor-edge);
  transition:opacity 140ms ease-out,transform 160ms ease-out,background-color 170ms ease,box-shadow 170ms ease;
}
.cursor-dot::before {
  width:6px;height:6px;border-radius:50%;
  transform:translate3d(-50%,-50%,0) scale(var(--cursor-core-scale,1));
  opacity:var(--cursor-core-opacity,1);
}
.cursor-dot::after {
  width:2px;height:24px;border-radius:1px;
  transform:translate3d(-50%,-50%,0) scaleY(var(--cursor-beam-scale,.55));
  opacity:var(--cursor-beam-opacity,0);
}
.cursor-effects:is([data-cursor-mode="hover"],[data-cursor-mode="label"],[data-cursor-mode="text"]) .cursor-dot {
  --cursor-core-scale:.4;
  --cursor-core-opacity:0;
}
.cursor-effects[data-cursor-mode="text"] .cursor-dot { --cursor-beam-scale:1;--cursor-beam-opacity:1; }
.cursor-effects[data-cursor-pressed="true"][data-cursor-mode="idle"] .cursor-dot { --cursor-core-scale:.7; }

.cursor-outline {
  position:absolute;inset:0;
  border:1.25px solid var(--cursor-ink);
  border-radius:50%;
  background:transparent;
  box-shadow:var(--cursor-edge);
  transform:scale3d(var(--cursor-scale-x,1),var(--cursor-scale-y,1),1);
  transition:border-color 170ms ease,box-shadow 170ms ease,opacity 150ms ease-out;
}
.cursor-effects[data-cursor-mode="text"] .cursor-outline { opacity:calc(var(--cursor-scroll-strength,0) * .75); }
.cursor-effects:is([data-cursor-mode="hover"],[data-cursor-mode="label"]) .cursor-outline {
  border-width:1px;
  mask-image:conic-gradient(var(--midnight) 15%,transparent 15% 35%,var(--midnight) 35% 65%,transparent 65% 85%,var(--midnight) 85%);
}

.cursor-scroll-indicator {
  position:absolute;top:50%;left:50%;
  width:5px;height:5px;
  border:solid var(--cursor-ink);border-width:0 1.25px 1.25px 0;
  box-shadow:1px 1px 0 var(--cursor-halo);
  opacity:calc(var(--cursor-scroll-strength,0) * .95);
  transform:translate3d(-50%,calc(18px + 8px * var(--cursor-scroll-strength,0)),0) rotate(45deg);
  transition:border-color 170ms ease,box-shadow 170ms ease;
}
.cursor-effects[data-cursor-scroll="up"] .cursor-scroll-indicator {
  transform:translate3d(-50%,calc(-23px - 8px * var(--cursor-scroll-strength,0)),0) rotate(225deg);
}
.cursor-label {
  position:absolute;left:50%;top:50%;
  transform:translate3d(calc(-50% + var(--cursor-label-x,0px)),var(--cursor-label-y,27px),0);
  padding:.3rem .48rem;
  max-width:180px;
  overflow:hidden;
  border-radius:999px;
  background:var(--cursor-ink);
  color:var(--cursor-inverse);
  box-shadow:var(--cursor-edge);
  font:650 .625rem/1 var(--font-text,sans-serif);
  letter-spacing:.08em;
  white-space:nowrap;
  text-overflow:ellipsis;
  opacity:0;
  transition:opacity 150ms ease-out,background-color 170ms ease,color 170ms ease,box-shadow 170ms ease;
}
.cursor-effects[data-cursor-mode="label"] .cursor-label { opacity:1; }

.tilt-card .image-distort {
  transform:perspective(1200px) rotateX(var(--cursor-tilt-x,0deg)) rotateY(var(--cursor-tilt-y,0deg));
}
:root.modal-open #cursor-fog,
:root.is-game-fullscreen :is(.cursor-dot,.cursor-ring,.floating-preview,#cursor-fog),
:root.is-game-focused .cursor-effects {
  visibility:hidden;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html.custom-cursor:not(.motion-reduced,.is-exhibition-menu-open),html.custom-cursor:not(.motion-reduced,.is-exhibition-menu-open) * { cursor:none!important; }
}
@media (hover:none),(pointer:coarse),(prefers-reduced-motion:reduce) {
  :is(.cursor-dot,.cursor-ring,.floating-preview,#cursor-fog) { display:none!important; }
}
.motion-reduced :is(.cursor-dot,.cursor-ring,.floating-preview,#cursor-fog) { display:none!important; }
