/* WebBang v11.9.27: one premium floating page navigation control. */
.wb-smart-scroll {
    --wb-scroll-cyan: #49d0e6;
    position: fixed;
    z-index: 29;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 0;
    display: grid;
    place-items: center;
    isolation: isolate;
    border: 1px solid rgba(116, 204, 232, .42);
    border-radius: 50%;
    background: linear-gradient(145deg, #143953 0%, #09182c 58%, #071324 100%);
    box-shadow: 0 6px 20px rgba(0, 9, 28, .25), inset 0 1px 0 rgba(255, 255, 255, .10);
    color: #f8fdff;
    cursor: pointer;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wb-smart-scroll[hidden] { display: none !important; }
.wb-smart-scroll:hover {
    border-color: var(--wb-scroll-cyan);
    box-shadow: 0 7px 22px rgba(0, 9, 28, .35), 0 0 0 3px rgba(73, 208, 230, .12);
    transform: translateY(-2px);
}
.wb-smart-scroll:active { transform: translateY(0) scale(.97); }
.wb-smart-scroll:focus-visible { outline: 3px solid #9cf4ff; outline-offset: 4px; }
.wb-smart-scroll__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.wb-smart-scroll__track, .wb-smart-scroll__progress { fill: none; stroke-width: 2; }
.wb-smart-scroll__track { stroke: rgba(114, 208, 230, .20); }
.wb-smart-scroll__progress {
    stroke: var(--wb-scroll-cyan);
    stroke-linecap: round;
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset .1s linear;
}
.wb-smart-scroll__centre {
    display: grid;
    place-items: center;
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 24% 20%, rgba(74, 208, 232, .18), rgba(73, 208, 230, .02) 70%);
    pointer-events: none;
}
.wb-smart-scroll__arrow { width: 21px; height: 21px; transition: transform .24s ease; }
.wb-smart-scroll[data-direction="down"] .wb-smart-scroll__arrow { transform: rotate(180deg); }
.wb-smart-scroll__tooltip {
    pointer-events: none;
    position: absolute;
    right: calc(100% + 13px);
    top: 50%;
    transform: translate(5px, -50%);
    border: 1px solid rgba(103, 188, 216, .3);
    border-radius: 10px;
    padding: 9px 12px;
    background: #0b1a2d;
    color: #e6f9ff;
    box-shadow: 0 5px 18px rgba(0, 8, 22, .18);
    font: 700 12px/1.15 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: .01em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
@media (hover: hover) and (pointer: fine) {
    .wb-smart-scroll:hover .wb-smart-scroll__tooltip,
    .wb-smart-scroll:focus-visible .wb-smart-scroll__tooltip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
}
@media (max-width: 640px) {
    .wb-smart-scroll {
        width: 52px;
        height: 52px;
        right: max(16px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
    }
    .wb-smart-scroll__tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wb-smart-scroll, .wb-smart-scroll__arrow, .wb-smart-scroll__progress, .wb-smart-scroll__tooltip { transition: none !important; }
}
