/* Desktop only. Native cursor retained on touch and reduced-motion devices. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html.davezz-ring-enabled, html.davezz-ring-enabled body,
  html.davezz-ring-enabled a, html.davezz-ring-enabled button,
  html.davezz-ring-enabled label { cursor:none!important; }
  html.davezz-ring-enabled input,html.davezz-ring-enabled textarea,
  html.davezz-ring-enabled select,html.davezz-ring-enabled [contenteditable="true"] {cursor:text!important}
  .davezz-ring-cursor {position:fixed;top:0;left:0;width:0;height:0;z-index:2147483647;pointer-events:none;opacity:0;will-change:transform;transition:opacity .18s ease}
  .davezz-ring-cursor.is-visible:not(.is-editable){opacity:1}
  .davezz-ring-cursor__circle {position:absolute;left:0;top:0;width:34px;height:34px;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);border:1.5px solid #f12525;border-radius:50%;background:rgba(10,10,10,.13);box-shadow:0 0 16px rgba(241,37,37,.1);transition:width .25s ease,height .25s ease,background .25s ease,border-color .25s ease,box-shadow .25s ease}
  .davezz-ring-cursor__dot {width:5px;height:5px;border-radius:50%;background:#fff;transition:opacity .15s ease}
  .davezz-ring-cursor__view {position:absolute;color:#fff;font:800 10px/1.1 Arial,sans-serif;letter-spacing:.06em;white-space:nowrap;opacity:0;transform:scale(.8);transition:opacity .18s ease,transform .18s ease}
  .davezz-ring-cursor.is-interactive .davezz-ring-cursor__circle {width:44px;height:44px;background:rgba(241,37,37,.22);box-shadow:0 0 20px rgba(241,37,37,.22)}
  .davezz-ring-cursor.is-photo .davezz-ring-cursor__circle {width:82px;height:82px;background:#f12525;border-color:#f12525;box-shadow:0 0 25px rgba(241,37,37,.28)}
  .davezz-ring-cursor.is-photo .davezz-ring-cursor__dot {opacity:0}
  .davezz-ring-cursor.is-photo .davezz-ring-cursor__view {opacity:1;transform:scale(1)}
}

/* Lightbox: the cursor lives inside the dialog top layer while open. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html.davezz-ring-enabled .lightbox, html.davezz-ring-enabled .lightbox img,
  html.davezz-ring-enabled .gallery-photo {cursor:none!important}
  .davezz-ring-cursor.is-close .davezz-ring-cursor__circle {width:64px;height:64px;background:#f12525;border-color:#f12525}
  .davezz-ring-cursor.is-close .davezz-ring-cursor__dot {opacity:0}
  .davezz-ring-cursor.is-close .davezz-ring-cursor__view {opacity:1;transform:scale(1)}
  .davezz-ring-cursor.is-close .davezz-ring-cursor__view {font-size:0}
  .davezz-ring-cursor.is-close .davezz-ring-cursor__view::after {content:'×';font:400 29px/1 Arial,sans-serif}
}
