.shortcut-nav {
    --shortcut-emerald: #12352f;
    --shortcut-emerald-muted: #2c5148;
    --shortcut-gold: #b59a62;
    --shortcut-ivory: #f7f5ef;
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid rgba(181, 154, 98, .78);
    border-radius: 13px;
    background:
        linear-gradient(180deg, rgba(44, 81, 72, .26), rgba(18, 53, 47, .1)),
        rgba(18, 53, 47, .94);
    box-shadow:
        0 12px 34px rgba(8, 31, 27, .25),
        inset 0 0 0 1px rgba(247, 245, 239, .055),
        inset 0 1px 0 rgba(247, 245, 239, .09);
    -webkit-backdrop-filter: blur(10px) saturate(112%);
    backdrop-filter: blur(10px) saturate(112%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .36s ease, transform .36s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .36s;
}

.shortcut-nav::before,
.shortcut-nav::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 18px;
    border-block: 1px solid rgba(181, 154, 98, .4);
    transform: translateY(-50%);
    pointer-events: none;
}

.shortcut-nav::before { left: -4px; border-left: 1px solid rgba(181, 154, 98, .4); }
.shortcut-nav::after { right: -4px; border-right: 1px solid rgba(181, 154, 98, .4); }

body.invitation-opened .shortcut-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: .08s, .08s, 0s;
}

.shortcut-nav__link {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: rgba(228, 206, 157, .83);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.shortcut-nav__frame {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(181, 154, 98, .58);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(44, 81, 72, .7), rgba(18, 53, 47, .92));
    box-shadow: inset 0 1px 0 rgba(247, 245, 239, .06);
    transition: color .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.shortcut-nav__frame::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(181, 154, 98, .14);
    border-radius: 4px;
    pointer-events: none;
}

.shortcut-nav__icon {
    position: relative;
    z-index: 1;
    width: 27px;
    height: 27px;
    vector-effect: non-scaling-stroke;
}

.shortcut-nav__label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 2;
    width: max-content;
    max-width: 92px;
    padding: 5px 8px 4px;
    border: 1px solid rgba(181, 154, 98, .5);
    border-radius: 5px;
    background: rgba(18, 53, 47, .96);
    color: var(--shortcut-ivory);
    box-shadow: 0 6px 18px rgba(8, 31, 27, .18);
    font: 500 .58rem/1.15 "Poppins", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.shortcut-nav__link:hover .shortcut-nav__frame,
.shortcut-nav__link:focus-visible .shortcut-nav__frame {
    color: #ead8ad;
    border-color: rgba(218, 186, 117, .9);
    transform: translateY(-1px);
}

.shortcut-nav__link:hover .shortcut-nav__label,
.shortcut-nav__link:focus-visible .shortcut-nav__label {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}

.shortcut-nav__link:focus { outline: none; }
.shortcut-nav__link:focus-visible .shortcut-nav__frame {
    outline: 2px solid rgba(247, 245, 239, .9);
    outline-offset: 3px;
}

.shortcut-nav__link:active .shortcut-nav__frame {
    transform: translateY(1px);
    background: linear-gradient(145deg, rgba(35, 70, 61, .9), rgba(14, 45, 39, .98));
}

.shortcut-nav__link.is-active .shortcut-nav__frame {
    color: #f0ddb0;
    border-color: rgba(218, 186, 117, .95);
    background: linear-gradient(145deg, rgba(58, 94, 84, .88), rgba(25, 65, 56, .98));
    box-shadow:
        0 0 12px rgba(181, 154, 98, .12),
        inset 0 1px 0 rgba(247, 245, 239, .1);
}

.shortcut-nav__link.is-active .shortcut-nav__frame::before {
    border-color: rgba(218, 186, 117, .28);
}

#welcome,
#count-day,
#event-location,
#wedding-gift {
    scroll-margin-block: clamp(36px, 8vh, 96px);
}

@media (min-width: 900px) {
    .shortcut-nav {
        bottom: 20px;
        gap: 7px;
        padding: 8px 10px;
    }

    .shortcut-nav__link {
        width: 48px;
        height: 48px;
    }

    .shortcut-nav__frame {
        width: 44px;
        height: 44px;
    }

    .shortcut-nav__icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 375px) {
    body.invitation-opened #musicBtn {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .shortcut-nav,
    .shortcut-nav__frame,
    .shortcut-nav__label {
        transition: none;
    }

    .shortcut-nav__link:hover .shortcut-nav__frame,
    .shortcut-nav__link:focus-visible .shortcut-nav__frame,
    .shortcut-nav__link:active .shortcut-nav__frame {
        transform: none;
    }
}
