/* My Story Nest — brilho mágico nos botões do topo (v22) */
.top-btn,.navlinks a{position:relative;isolation:isolate;transition:background-color .25s,color .25s,box-shadow .3s,border-color .25s,transform .2s}

/* estado mágico: ao passar o mouse, no foco do teclado, e na parte atual do site */
html body .top-btn:hover,html body .top-btn:focus-visible,html body .top-btn.is-current,
html body .navlinks a:hover,html body .navlinks a:focus-visible,html body .navlinks a.is-current{
  background:linear-gradient(110deg,#e9bf6a 0%,#f6d996 30%,#fff6dc 44%,#f6d996 58%,#d7b4ff 100%)!important;
  background-size:260% 100%!important;
  color:#1b1650!important;
  border-color:#f3cf82!important;
  transform:none!important;
  box-shadow:0 0 0 1px rgba(243,207,130,.9),0 0 12px 2px rgba(190,140,255,.75),0 0 22px 6px rgba(240,202,120,.38)!important;
  animation:msn-reflexo 2.4s ease-in-out infinite;
}

/* estrelinhas que piscam em volta do botão */
.top-btn::after,.navlinks a::after{
  content:"✦";position:absolute;top:-7px;right:-3px;font-size:11px;line-height:1;
  color:#ffe6a6;text-shadow:0 0 6px #fff1c7,0 0 10px #c9a2ff;
  opacity:0;pointer-events:none;z-index:2;transition:opacity .2s
}
.top-btn::before,.navlinks a::before{
  content:"✧";position:absolute;bottom:-6px;left:4px;font-size:9px;line-height:1;
  color:#e6d0ff;text-shadow:0 0 6px #d9b8ff,0 0 9px #ffe2a0;
  opacity:0;pointer-events:none;z-index:2;transition:opacity .2s
}
.top-btn:hover::after,.top-btn:focus-visible::after,.top-btn.is-current::after,
.navlinks a:hover::after,.navlinks a:focus-visible::after,.navlinks a.is-current::after{animation:msn-estrela 1.6s ease-in-out infinite}
.top-btn:hover::before,.top-btn:focus-visible::before,.top-btn.is-current::before,
.navlinks a:hover::before,.navlinks a:focus-visible::before,.navlinks a.is-current::before{animation:msn-estrela 1.6s ease-in-out .8s infinite}

/* parte atual do site: brilho mais calmo que o do mouse */
html body .top-btn.is-current:not(:hover),html body .navlinks a.is-current:not(:hover){animation-duration:4.5s}

/* "Loja": continua dourado e ganha um reflexo de luz a cada ~6 s */
html body .top-btn.shop-btn:not(:hover):not(.is-current){
  background:linear-gradient(110deg,#e7bd68 0%,#e7bd68 40%,#fff3d2 50%,#e7bd68 60%,#e7bd68 100%)!important;
  background-size:300% 100%!important;
  color:#17205d!important;border-color:#e7bd68!important;
  animation:msn-loja 6s ease-in-out infinite
}

@keyframes msn-reflexo{0%{background-position:100% 0}50%{background-position:0 0}100%{background-position:100% 0}}
@keyframes msn-loja{0%,72%{background-position:100% 0}100%{background-position:0 0}}
@keyframes msn-estrela{0%,100%{opacity:0;transform:scale(.4) rotate(0)}50%{opacity:1;transform:scale(1.15) rotate(25deg)}}

/* quem pediu menos animação no aparelho vê só o brilho parado */
@media (prefers-reduced-motion:reduce){
  .top-btn,.navlinks a,.top-btn::after,.top-btn::before,.navlinks a::after,.navlinks a::before{animation:none!important}
  .top-btn:hover::after,.top-btn.is-current::after,.navlinks a:hover::after,.navlinks a.is-current::after{opacity:1}
}
