/* Shiny button: a CSS port of the ShinyButton component, applied as a class (.btn.primary.shiny).
   A lime arc sweeps around the border, a speckle field follows it, and on hover the arc widens and
   an inner glow fades in. Plain CSS (no React); registered @property angles drive the sweep. */
@property --sh-a{syntax:"<angle>";initial-value:0deg;inherits:false}
@property --sh-o{syntax:"<angle>";initial-value:0deg;inherits:false}
@property --sh-p{syntax:"<percentage>";initial-value:5%;inherits:false}
@property --sh-c{syntax:"<color>";initial-value:white;inherits:false}

.btn.primary.shiny{
  --sh-base:#0a0f0b; --sh-inset:#1a2118; --sh-label:#f3f6f4; --sh-accent:#c5f24b; --sh-accent-soft:#e8ff8f;
  --sh-anim:sh-angle linear infinite; --sh-dur:3s; --sh-ease:.8s cubic-bezier(.25,1,.5,1);
  isolation:isolate;position:relative;overflow:hidden;border:1px solid transparent;color:var(--sh-label);font-weight:600;
  background:
    linear-gradient(var(--sh-base),var(--sh-base)) padding-box,
    conic-gradient(from calc(var(--sh-a) - var(--sh-o)),transparent,var(--sh-accent) var(--sh-p),var(--sh-c) calc(var(--sh-p) * 2),var(--sh-accent) calc(var(--sh-p) * 3),transparent calc(var(--sh-p) * 4)) border-box;
  box-shadow:inset 0 0 0 1px var(--sh-inset),inset 0 -1ex 2rem 4px rgba(197,242,75,0);
  transition:var(--sh-ease);
  transition-property:--sh-o,--sh-p,--sh-c,box-shadow,scale,translate;
}
.btn.primary.shiny::before,.btn.primary.shiny::after{content:"";pointer-events:none;position:absolute;inset:auto;left:50%;top:50%;translate:-50% -50%;z-index:-1;transform:none;opacity:1}
.btn.primary.shiny::before{
  --size:calc(100% - 6px);--pos:2px;--space:calc(var(--pos) * 2);
  width:var(--size);height:var(--size);border-radius:inherit;
  background:radial-gradient(circle at var(--pos) var(--pos),#fff calc(var(--pos) / 4),transparent 0) padding-box;background-size:var(--space) var(--space);background-repeat:space;
  mask-image:conic-gradient(from calc(var(--sh-a) + 45deg),black,transparent 10% 90%,black);-webkit-mask-image:conic-gradient(from calc(var(--sh-a) + 45deg),black,transparent 10% 90%,black);
  opacity:.4;
}
.btn.primary.shiny::after{
  --sh-anim:sh-shimmer linear infinite;
  width:100%;aspect-ratio:1;background:linear-gradient(-50deg,transparent,var(--sh-accent),transparent);
  mask-image:radial-gradient(circle at bottom,transparent 40%,black);-webkit-mask-image:radial-gradient(circle at bottom,transparent 40%,black);
  opacity:.5;
}
.btn.primary.shiny,.btn.primary.shiny::before,.btn.primary.shiny::after{
  animation:var(--sh-anim) var(--sh-dur),var(--sh-anim) calc(var(--sh-dur) / .4) reverse paused;
  animation-composition:add;
}
.btn.primary.shiny:is(:hover,:focus-visible){
  --sh-p:20%;--sh-o:95deg;--sh-c:var(--sh-accent-soft);
  box-shadow:inset 0 0 0 1px var(--sh-inset),inset 0 -1ex 2rem 4px rgba(197,242,75,.38);
  filter:none;
}
.btn.primary.shiny:is(:hover,:focus-visible),.btn.primary.shiny:is(:hover,:focus-visible)::before,.btn.primary.shiny:is(:hover,:focus-visible)::after{animation-play-state:running}
.btn.primary.shiny:active{translate:0 1px}
.btn.primary.shiny .ic{color:var(--sh-accent)}
@keyframes sh-angle{to{--sh-a:360deg}}
@keyframes sh-shimmer{to{rotate:360deg}}
@media(prefers-reduced-motion:reduce){
  .btn.primary.shiny,.btn.primary.shiny::before,.btn.primary.shiny::after{animation:none!important;transition:none}
  .btn.primary.shiny:is(:hover,:focus-visible)::before,.btn.primary.shiny:is(:hover,:focus-visible)::after{animation-play-state:paused!important}
}
