/* v6 Social buttons (ks-social-ring-v6.js) — slower: about twice as long as v5: the button's OWN outline lights up as a blue neon (the site's #2f86ff)
   that turns around the logo, one button after the other, then the outline goes back to its normal light / dark colour.
   The layer sits exactly on the outline (same place, thickness and roundness), so no second circle appears. */
@property --ks-edge-a{syntax:'<angle>';inherits:false;initial-value:0deg}
@property --ks-edge-l{syntax:'<angle>';inherits:false;initial-value:110deg}
html body .ksf-social a > span.ks-edge,html body .kizin-social-links a > span.ks-edge{
  position:absolute!important;inset:calc(-1 * var(--ks-edge-w,1px))!important;border-radius:inherit!important;
  padding:calc(var(--ks-edge-w,1px) + .8px)!important;margin:0!important;pointer-events:none;z-index:2;opacity:0;box-sizing:border-box;
  background:conic-gradient(from var(--ks-edge-a),rgba(47,134,255,0) 0deg,#2f86ff calc(var(--ks-edge-l) * .8),#ffffff calc(var(--ks-edge-l) - 6deg),#2f86ff calc(var(--ks-edge-l) - 2deg),rgba(47,134,255,0) var(--ks-edge-l));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  filter:drop-shadow(0 0 3px #2f86ff) drop-shadow(0 0 8px rgba(47,134,255,.9))}
/* turn twice, then the whole outline glows, then it fades into the normal outline */
html body a.ks-ring-play > span.ks-edge{animation:ksEdgeSpin 3.4s cubic-bezier(.4,0,.3,1) both;animation-delay:calc(var(--ks-ring-i,0) * .35s)}
html body a.ks-ring-play{animation:ksEdgeHide 4.2s ease backwards;animation-delay:calc(var(--ks-ring-i,0) * .35s)}
html body a.ks-ring-play > svg{animation:ksRingIcon .9s cubic-bezier(.3,1.5,.5,1) both;animation-delay:calc(1.6s + var(--ks-ring-i,0) * .35s)}
/* Safari only animates the two angles (no background swap): the arc turns twice, then grows into the full circle, then fades */
@keyframes ksEdgeSpin{
  0%{--ks-edge-a:0deg;--ks-edge-l:110deg;opacity:0}
  10%{opacity:1}
  62%{--ks-edge-a:720deg;--ks-edge-l:110deg;opacity:1}
  80%{--ks-edge-a:900deg;--ks-edge-l:360deg;opacity:1}
  100%{--ks-edge-a:900deg;--ks-edge-l:360deg;opacity:0}}
/* while the neon runs on the outline, the plain outline underneath steps aside, then comes back */
@keyframes ksEdgeHide{0%,70%{border-color:transparent;box-shadow:0 0 12px rgba(47,134,255,.45)}100%{}}
@keyframes ksRingIcon{0%{transform:scale(.4) rotate(-25deg);opacity:0}100%{transform:none;opacity:1}}
html[data-theme="dark"] body a > span.ks-edge{filter:drop-shadow(0 0 4px #2f86ff) drop-shadow(0 0 10px rgba(47,134,255,1))}
@media (prefers-reduced-motion:reduce){html body a > span.ks-edge{display:none!important}html body a.ks-ring-play,html body a.ks-ring-play > svg{animation:none!important}}
html.ks-a11y-still body a > span.ks-edge{display:none!important}
html.ks-a11y-still body a.ks-ring-play,html.ks-a11y-still body a.ks-ring-play > svg{animation:none!important}

/* fallback for browsers without @property (class set by the script) */
html.ks-edge-noprop body a > span.ks-edge{background:conic-gradient(rgba(47,134,255,0) 0deg,rgba(47,134,255,0) 200deg,#2f86ff 320deg,#ffffff 352deg,rgba(47,134,255,0) 360deg)}
html.ks-edge-noprop body .ksf-social a.ks-ring-play > span.ks-edge{animation-name:ksEdgeTurn}
html.ks-edge-noprop body .kizin-social-links a > span.ks-edge{background:#2f86ff}
html.ks-edge-noprop body .kizin-social-links a.ks-ring-play > span.ks-edge{animation-name:ksEdgeGlow}
@keyframes ksEdgeTurn{0%{transform:rotate(0);opacity:0}10%{opacity:1}75%{opacity:1}100%{transform:rotate(900deg);opacity:0}}
@keyframes ksEdgeGlow{0%{opacity:0}25%{opacity:1}60%{opacity:.35}80%{opacity:1}100%{opacity:0}}
