.di-shortcut {
    position: fixed;
    z-index: 45;
    inset-inline-end: 0;
    top: 58%;
    transform: translateY(-50%);
    font: 730 14px/1.15 system-ui, sans-serif;
    pointer-events: none;
}
.di-shortcut .di-shortcut-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 44px;
    padding: 11px 8px;
    border: 1px solid #8069a176;
    border-inline-end: 0;
    border-radius: 15px 0 0 15px;
    background: #302244;
    color: #fff6ff !important;
    text-decoration: none !important;
    box-shadow: 0 5px 20px #17062639;
    pointer-events: auto;
}
.di-shortcut .di-shortcut-link:hover,
.di-shortcut[data-complete] .di-shortcut-link { background: #46306a; }
.di-shortcut .di-shortcut-link:focus-visible { outline: 3px solid #e3fc87 !important; outline-offset: -4px; }
.di-shortcut-caption { writing-mode: vertical-rl; white-space: nowrap; }
.di-shortcut-mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    place-items: stretch;
    gap: 3px;
    width: 29px;
    height: 29px;
    box-sizing: border-box;
    padding: 5px;
    border-radius: 8px;
    background: #642ec8;
    transform: rotate(-9deg);
}
.di-shortcut-mark i { border-radius: 2px; background: #efe0ff; }
.di-shortcut-mark i:nth-child(2) { background: #ffc387; }
.di-shortcut-mark i:nth-child(3) { background: #e4fa85; }
.di-shortcut-mark i:nth-child(4) { background: #e5d4ff; }
.di-shortcut[data-complete] .di-shortcut-mark { box-shadow: 0 0 0 1px #e1c7ff60; }
.di-shortcut-sparks {
    position: absolute;
    inset-inline-start: 50%;
    top: 23px;
    width: 0;
    height: 0;
}
.di-shortcut-sparks i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #e1f688;
    opacity: 0;
}
.di-shortcut-sparks i:nth-child(1) { --di-x: -51px; --di-y: -29px; }
.di-shortcut-sparks i:nth-child(2) { --di-x: -39px; --di-y: 33px; background: #ddaeff; }
.di-shortcut-sparks i:nth-child(3) { --di-x: 6px; --di-y: -41px; background: #ffc387; }
.di-shortcut-sparks i:nth-child(4) { --di-x: -57px; --di-y: 7px; background: #e7d6ff; }
.di-shortcut[data-celebrating] .di-shortcut-link { animation:di-shortcut-in .72s cubic-bezier(.22,.83,.37,1.18) both; }
.di-shortcut[data-celebrating] .di-shortcut-mark { animation:di-shortcut-roll .76s cubic-bezier(.2,.7,.25,1) both; }
.di-shortcut[data-celebrating] .di-shortcut-sparks i { animation:di-shortcut-spark .8s .16s ease-out both; }
.di-shortcut-status { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
@keyframes di-shortcut-in {
    0% { transform:translateX(105%); }
    65% { transform:translateX(-6px); }
    100% { transform:translateX(0); }
}
@keyframes di-shortcut-roll {
    0% { transform:rotate(-105deg) scale(.56); }
    68% { transform:rotate(12deg) scale(1.08); }
    100% { transform:rotate(-9deg) scale(1); }
}
@keyframes di-shortcut-spark {
    0% { transform:translate(0,0) rotate(0) scale(.2); opacity:0; }
    20% { opacity:1; }
    100% { transform:translate(var(--di-x),var(--di-y)) rotate(110deg) scale(.3); opacity:0; }
}
@media(max-width:800px) {
    .di-shortcut { top:auto;bottom:max(12px,env(safe-area-inset-bottom));inset-inline-end:max(12px,env(safe-area-inset-right));transform:none; }
    .di-shortcut .di-shortcut-link { width:44px;height:44px;min-width:44px;min-height:44px;justify-content:center;padding:4px;border:1px solid #8069a176;border-radius:12px; }
    html:has(.di-shortcut) { scroll-padding-bottom: 64px; }
    .di-shortcut-caption,.di-shortcut-arrow { display:none; }
}
@media(prefers-reduced-motion:reduce) {
    .di-shortcut[data-celebrating] * { animation:none !important; }
}
