/* Nordstern music toggle — fixed golden 8-pointed star, bottom right */
.nordstern{
  position:fixed;
  right:max(18px, env(safe-area-inset-right, 0px));
  bottom:max(18px, env(safe-area-inset-bottom, 0px));
  z-index:64;
  width:52px;height:52px;
  padding:0;margin:0;
  border:0;background:transparent;
  cursor:pointer;
  line-height:0;
  -webkit-tap-highlight-color:transparent;
  appearance:none;
  color:inherit;
  transition:transform .35s ease;
}
.nordstern:focus{outline:none}
.nordstern:focus-visible{
  outline:2px solid var(--gold,#f4dfb0);
  outline-offset:4px;
  border-radius:50%;
}
.nordstern:hover,
.nordstern:focus-visible{transform:scale(1.06)}
.nordstern__star{
  display:block;width:100%;height:100%;
  filter:drop-shadow(0 0 7px rgba(244,223,176,.4)) drop-shadow(0 2px 6px rgba(0,0,0,.45));
  transform-origin:50% 50%;
  transition:filter .6s ease, opacity .4s ease;
  opacity:.92;
}
.nordstern:hover .nordstern__star,
.nordstern:focus-visible .nordstern__star{
  opacity:1;
  filter:drop-shadow(0 0 11px rgba(244,223,176,.62)) drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.nordstern.is-on .nordstern__star{
  opacity:1;
  animation:ns-spin 54s linear infinite;
  filter:drop-shadow(0 0 10px rgba(244,223,176,.7)) drop-shadow(0 0 18px rgba(200,150,80,.28));
}
.nordstern.is-on .nordstern__shine{
  animation:ns-shine 5.5s ease-in-out infinite;
}
@keyframes ns-spin{to{transform:rotate(360deg)}}
@keyframes ns-shine{
  0%,100%{opacity:.15}
  50%{opacity:.55}
}
@media (max-width:980px){
  .nordstern{width:44px;height:44px;right:max(14px, env(safe-area-inset-right, 0px));bottom:max(14px, env(safe-area-inset-bottom, 0px))}
}
@media (prefers-reduced-motion:reduce){
  .nordstern,.nordstern:hover,.nordstern:focus-visible{transition:none;transform:none}
  .nordstern.is-on .nordstern__star,
  .nordstern.is-on .nordstern__shine{animation:none}
}
