/* The pointer includes Bata Studio's rose-pearl ornament. The sparkle texture
   comes from its light glitter strip. Both are small local derivatives. */
@media (pointer: fine) {
  html, body, a[href], button:not(:disabled), summary {
    cursor: url("media/signature-rose-cursor.png") 1 1, auto;
  }
  a[href], button:not(:disabled), summary {
    cursor: url("media/signature-rose-cursor.png") 1 1, pointer;
  }
  input, textarea, [contenteditable="true"] { cursor: text; }
}
.signature-trail-star {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 10px; height: 10px; margin: -5px;
  background: #ffb6db url("media/signature-glitter.jpg") center / 24px auto;
  clip-path: polygon(50% 0,61% 38%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 38%);
  animation: signature-trail .52s ease-out both;
}
@keyframes signature-trail {
  0% { opacity: .95; transform: scale(.8) rotate(0); }
  40% { opacity: .85; }
  100% { opacity: 0; transform: translate(1px,10px) scale(.3) rotate(35deg); }
}
.signature-wardrobe {
  position:fixed; inset:0; z-index:9999; pointer-events:none; overflow:hidden;
  perspective:130vw; opacity:0;
  background:radial-gradient(ellipse at 50% 48%,#fffefb 12%,#fff0f6 60%,#e8cdda);
  animation:signature-enter .14s ease-out forwards;
}
.signature-door {
  position:absolute; inset:0 50% 0 0; transform-origin:0% 50%;
  border:2px solid #d3a0b6;
  background:linear-gradient(93deg,#f7d3e4,#fff1f7 17%,#f7dce9 69%,#e8bbce);
  box-shadow:inset 0 0 0 7px #fbe4ee,inset 0 0 0 9px #dab2c6;
  animation:signature-open-left .61s .1s cubic-bezier(.4,.05,.3,1) both;
}
.signature-door::before {
  content:""; position:absolute; inset:9% 14%;
  border:3px double #c895ad; border-radius:40% 40% 3px 3px / 14% 14% 3px 3px;
  box-shadow:0 2px 1px white,inset 0 2px 1px #fff9;
}
.signature-door::after {
  content:""; position:absolute; right:5%; top:52%; width:clamp(9px,1.5vw,20px); aspect-ratio:1;
  border:1px solid #bb98a9; border-radius:50%;
  background:radial-gradient(circle at 35% 30%,white,#fff7eb 32%,#d8acb5 68%,#ab7c8e);
  box-shadow:0 2px 4px #5f354f50;
}
.signature-door + .signature-door {
  inset:0 0 0 50%; transform-origin:100% 50%; animation-name:signature-open-right;
}
.signature-door + .signature-door::after {left:5%;right:auto}
@keyframes signature-enter {to{opacity:1}}
@keyframes signature-open-left {to{transform:rotateY(-96deg)}}
@keyframes signature-open-right {to{transform:rotateY(96deg)}}
@media (prefers-reduced-motion: reduce) {
  .signature-trail-star, .signature-wardrobe { display:none; }
}
