.back-to-top {
    position: fixed;
    z-index: 100;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    display: grid;
    width: 54px;
    height: 54px;
    place-content: center;
    gap: 1px;
    padding: 0;
    border: 1px solid rgba(226, 191, 118, .65);
    border-radius: 50%;
    background: rgba(9, 44, 39, .9);
    box-shadow: 0 12px 28px rgba(4, 28, 24, .24);
    color: #e2bf76;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .32s ease, transform .32s ease, background .2s ease, color .2s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.back-to-top[hidden] { display: none; }
.back-to-top.is-visible { opacity: .82; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus-visible { border-color: #e2bf76; background: #e2bf76; color: #082d28; opacity: 1; outline: none; }
.back-to-top:focus-visible { box-shadow: 0 0 0 3px rgba(255, 253, 248, .95), 0 0 0 6px rgba(201, 154, 67, .45); }
.back-to-top > span { font-family: Arial, sans-serif; font-size: 18px; line-height: 1; }
.back-to-top > small { font-family: Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .12em; line-height: 1; }

@media (max-width: 720px) {
    .back-to-top {
        right: max(15px, env(safe-area-inset-right));
        bottom: max(15px, env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
    }

    .back-to-top > span { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition-duration: .01ms; }
}
