#name-back-to-top {
    position: fixed;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(40, 40, 40, .8);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
#name-back-to-top.visible {
    opacity: .8;
    visibility: visible;
    pointer-events: auto;
}
#name-back-to-top:hover {
    background: rgba(60, 60, 60, .8);
    transform: translateY(-2px);
}
#name-back-to-top:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 3px;
}
#name-back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transform: rotate(-90deg);
}
@media (min-width: 768px) {
    #name-back-to-top { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #name-back-to-top { transition: none; }
}
