/* A native cursor keeps precise clicking; a separate glow never catches input. */
@media(hover:hover) and (pointer:fine){
  html,body,body *{cursor:url('assets/amethyst-handled-wand.svg') 4 2,auto!important}
  a,button,[role="button"],input[type="range"]{cursor:url('assets/amethyst-handled-wand.svg') 4 2,pointer!important}
  input:not([type="range"]),textarea,[contenteditable="true"]{cursor:text!important}
}
.wand-glow{position:fixed;left:0;top:0;width:78px;height:78px;margin:0;border:0;padding:0;overflow:visible;pointer-events:none!important;z-index:2147483647;border-radius:50%;background:radial-gradient(circle,#ebddff20, #c69ad815 26%,#b98fe508 48%,transparent 70%);opacity:0;transition:opacity .18s;translate:-50% -50%;will-change:transform}
.wand-glow.is-visible{opacity:1}

@media(prefers-reduced-motion:reduce){.wand-glow{display:none}}
@media(forced-colors:active){.wand-glow{display:none}html,body,body *{cursor:auto!important}}

/* Decorative flights use a fixed stage and never receive input. */
.familiar-flight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  width: clamp(34px, 5.2vw, 68px);
  aspect-ratio: 120 / 114;
  pointer-events: none;
  user-select: none;
}
.familiar-flight > img {
  display: block;
  width: 100%;
  height: 100%;
}
.familiar-flight--ladybug {
  width: clamp(16px, 2vw, 23px);
  aspect-ratio: 1;
}
.ladybug {
  position: absolute;
  inset: 0;
  transform: rotate(65deg);
}
.ladybug-body {
  position: absolute;
  inset: 22% 29% 14%;
  border: 1px solid #6c3143;
  border-radius: 44% 44% 48% 48%;
  background:
    radial-gradient(circle at 24% 39%, #391524 11%, transparent 14%),
    radial-gradient(circle at 76% 39%, #391524 11%, transparent 14%),
    radial-gradient(circle at 30% 72%, #391524 9%, transparent 12%),
    radial-gradient(circle at 70% 72%, #391524 9%, transparent 12%),
    linear-gradient(90deg, transparent 46%, #541e32 49% 53%, transparent 56%),
    linear-gradient(145deg, #f5a175, #b93f57 52%, #712440);
  box-shadow: inset 0 1px #ffe3a6aa, 0 0 5px #ffc78261;
}
.ladybug-body::before {
  content: '';
  position: absolute;
  inset: -30% 19% auto;
  height: 36%;
  border-radius: 60% 60% 30% 30%;
  background: #412536;
  box-shadow: inset 0 1px #eac3918c;
}
.ladybug::before, .ladybug::after {
  content: '';
  position: absolute;
  top: 39%;
  width: 47%;
  height: 40%;
  border-radius: 65% 30% 60% 38%;
  background: linear-gradient(150deg, #fff1ceef, #efb2bd70 62%, #e5b8ff29);
  box-shadow: 0 0 3px #ffe8c45e;
  animation: ladybug-wing .12s ease-in-out infinite alternate;
}
.ladybug::before { left: 1%; transform-origin: right top; rotate: -18deg; }
.ladybug::after { right: 1%; transform-origin: left top; rotate: 18deg; }
@keyframes ladybug-wing {
  from { transform: scaleX(.42) scaleY(.84); opacity: .48; }
  to { transform: scaleX(1); opacity: .92; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  .familiar-flight { display: none !important; }
}
