/* FoxLand Stage4 5.4: five measured cards, then native vertical scrolling. */
#fox-punishment-viewport {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

#fox-punishment-viewport.is-scrollable { scrollbar-gutter: stable; }

@supports (-moz-appearance: none) {
    #fox-punishment-viewport {
        scrollbar-width: thin;
        scrollbar-color: var(--fox-tone-as3l13, #ad60f0) var(--fox-tone-as2l2, #150d24) !important;
    }
}

@supports selector(::-webkit-scrollbar) {
    #fox-punishment-viewport::-webkit-scrollbar {
        width: 10px !important;
        height: 0 !important;
    }
    #fox-punishment-viewport::-webkit-scrollbar-track {
        border-radius: 999px !important;
        background: var(--fox-tone-as2l2, #150d24) !important;
        box-shadow: inset 0 0 0 1px rgba(var(--fox-rgb-gs4l15, 194, 122, 255), clamp(0, calc(.23 * var(--fox-glow-strength, 1)), 1)) !important;
    }
    #fox-punishment-viewport::-webkit-scrollbar-thumb {
        border: 2px solid var(--fox-tone-as2l2, #150d24) !important;
        border-radius: 999px !important;
        background: linear-gradient(180deg, var(--fox-tone-ts4l17, #ddacff), var(--fox-tone-ts3l13, #ad60f0) 52%, var(--fox-tone-ts2l10, #7f3dc7)) padding-box !important;
        box-shadow: none !important;
    }
    #fox-punishment-viewport::-webkit-scrollbar-thumb:hover,
    #fox-punishment-viewport.fox-scrollbar-active::-webkit-scrollbar-thumb,
    #fox-punishment-viewport.fox-scrollbar-dragging::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--fox-tone-ts4l19, #fff0ff), var(--fox-tone-ts4l17, #e2aaff) 49%, var(--fox-tone-ts3l13, #a65bec)) padding-box !important;
    }
}
