body:is(.blog-route,.about-route) .back-to-top{
  position:fixed;
  z-index:8;
  right:clamp(18px,3vw,44px);
  bottom:clamp(18px,3vw,32px);
  display:grid;
  grid-template-rows:1fr auto;
  justify-items:center;
  align-items:center;
  width:54px;
  height:62px;
  padding:8px 5px 6px;
  border:1px solid #5482a9;
  background:linear-gradient(145deg,#102a40ed,#07121eeF);
  box-shadow:inset 0 0 0 1px #0c2539,0 8px 24px #020a13a6,0 0 16px #348cf433;
  color:#dcefff;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(12px);
  transition:opacity .25s ease,transform .32s cubic-bezier(.16,1,.3,1),visibility 0s linear .32s,border-color .25s ease,box-shadow .25s ease;
}
body:is(.blog-route,.about-route) .back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition-delay:0s;
}
body:is(.blog-route,.about-route) .back-to-top:before,
body:is(.blog-route,.about-route) .back-to-top:after{
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  filter:drop-shadow(0 0 5px #348cf4a0);
}
body:is(.blog-route,.about-route) .back-to-top:before{top:-1px;left:-1px;border-top:2px solid #42a7ff;border-left:2px solid #42a7ff}
body:is(.blog-route,.about-route) .back-to-top:after{right:-1px;bottom:-1px;border-right:2px solid #42a7ff;border-bottom:2px solid #42a7ff}
body:is(.blog-route,.about-route) .back-to-top svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:#73c1ff;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 5px #348cf48c);
  animation:back-to-top-arrow-float 1.6s ease-in-out infinite;
}
body:is(.blog-route,.about-route) .back-to-top span{font:8px var(--mono);letter-spacing:.15em;color:#b8d8ee}
body:is(.blog-route,.about-route) .back-to-top:hover{border-color:#8bd0ff;box-shadow:inset 0 0 0 1px #2671ad,0 8px 24px #020a13a6,0 0 22px #348cf466}
body:is(.blog-route,.about-route) .back-to-top:focus-visible{outline:2px solid #9bd6ff;outline-offset:3px}

@keyframes back-to-top-arrow-float{
  0%,100%{transform:translateY(2px)}
  50%{transform:translateY(-3px)}
}

@media(max-width:760px){
  body:is(.blog-route,.about-route) .back-to-top{
    right:max(12px,env(safe-area-inset-right));
    bottom:max(12px,env(safe-area-inset-bottom));
    width:68px;
    height:72px;
    padding:10px 8px 8px;
    touch-action:manipulation;
  }
  body:is(.blog-route,.about-route) .back-to-top svg{width:30px;height:30px}
  body:is(.blog-route,.about-route) .back-to-top span{font-size:9px}
}

@media(prefers-reduced-motion:reduce){
  body:is(.blog-route,.about-route) .back-to-top,
  body:is(.blog-route,.about-route) .back-to-top svg{animation:none!important;transition:none!important}
  body:is(.blog-route,.about-route) .back-to-top.is-visible{transform:none}
}
