/* One precise dot opens into a ring only over clickable content. */
:root { --layer-cursor: 20; }
.cursor-layer {
    position: fixed;
    inset: 0;
    z-index: var(--layer-cursor);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    color: var(--black);
    visibility: hidden;
    opacity: 0;
    transition: opacity 120ms ease, visibility 120ms;
}
.cursor-layer.is-visible { visibility: visible; opacity: 1; }
.cursor-layer.on-media { color: var(--white); }
.cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: currentColor;
    pointer-events: none;
    transition:
        width 180ms cubic-bezier(0.22, 1, 0.36, 1),
        height 180ms cubic-bezier(0.22, 1, 0.36, 1),
        margin 180ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 140ms ease,
        border-color 140ms ease;
}
.cursor-layer.is-hovering .cursor-dot {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    background: transparent;
    border-color: currentColor;
}
.cursor-layer.is-pressed .cursor-dot { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }
.cursor-layer.is-hovering.is-pressed .cursor-dot { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.cursor-layer.on-media .cursor-dot { box-shadow: 0 0 1px rgb(0 0 0 / 0.4); }
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
    .cursor-layer { display: none; }
}
