.vkm-sheet,
.vkm-toast,
.vkm-claim {
    display: none;
}

body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 14px);
}

.vkm-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    align-items: flex-end;
    justify-content: space-around;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    overflow: visible;
    background: rgba(18, 16, 16, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(233, 226, 216, .12);
    transition: transform .28s ease, opacity .28s ease;
}

.vkm-typing .vkm-tabbar,
.vkm-nav-open .vkm-tabbar,
.vkm-sheet-on .vkm-tabbar {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.vkm-tabbar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 44px;
    height: 60px;
    padding: 6px 2px 8px;
    border: 0;
    background: none;
    color: rgba(168, 155, 140, .8);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.vkm-tabbar__item:hover,
.vkm-tabbar__item:focus-visible {
    color: var(--vkm-text);
    outline: none;
}

.vkm-tabbar__ico {
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}

.vkm-tabbar__ico svg {
    display: block;
}

.vkm-tabbar__txt {
    font-size: 11px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.vkm-tabbar__item.is-on {
    color: var(--vkm-amber);
}

.vkm-tabbar__item.is-on::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
}

.vkm-tabbar__item--menu[aria-expanded="true"] {
    color: var(--vkm-text);
}

.vkm-tabbar__item--deal {
    color: var(--vkm-text);
    overflow: visible;
    justify-content: flex-end;
    gap: 2px;
    padding-top: 0;
}

.vkm-tabbar__item--deal:hover,
.vkm-tabbar__item--deal:focus-visible {
    color: var(--vkm-text);
}

.vkm-tabbar__orb {
    display: flex;
    position: relative;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin-top: -18px;
    border-radius: 50%;
    aspect-ratio: 1;
    background: var(--vkm-amber);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--vkm-ink);
    font-weight: 600;
    box-shadow: none;
}

.vkm-tabbar__orb svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.vkm-tabbar__item--deal .vkm-tabbar__txt {
    margin-top: 0;
    font-weight: 600;
    color: var(--vkm-text);
    flex-shrink: 0;
}

.vkm-tabbar > noindex {
    flex: 1 1 0;
    display: flex;
    min-width: 0;
}

.vkm-tabbar > noindex > .vkm-tabbar__item {
    width: 100%;
}

.vkm-claim-on {
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.vkm-sheet-on {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .vkm-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 90;
        pointer-events: none;
        visibility: hidden;
    }

    .vkm-sheet.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .vkm-sheet__veil {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .72);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity .28s ease;
    }

    .vkm-sheet.is-open .vkm-sheet__veil {
        opacity: 1;
    }

    .vkm-sheet__box {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: min(88vh, 640px);
        padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
        border-radius: 22px 22px 0 0;
        background: linear-gradient(180deg, var(--vkm-cloth) 0%, var(--vkm-bg) 48%, var(--vkm-bg) 100%);
        border: 0;
        border-top: 1px solid rgba(233, 226, 216, .16);
        box-shadow: 0 -18px 42px rgba(0, 0, 0, .55);
        transform: translateY(104%);
        transition: transform .32s ease;
        outline: none;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vkm-sheet.is-open .vkm-sheet__box {
        transform: translateY(0);
    }

    .vkm-sheet__grip {
        display: block;
        width: 42px;
        height: 4px;
        margin: 2px auto 14px;
        border-radius: 999px;
        background: rgba(138, 58, 34, .76);
    }

    .vkm-sheet__x {
        position: absolute;
        top: 12px;
        right: 14px;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid var(--vkm-ember);
        border-radius: 999px;
        background: rgba(138, 58, 34, .2);
        color: var(--vkm-ash);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .vkm-sheet__x:hover,
    .vkm-sheet__x:focus-visible {
        color: var(--vkm-text);
        outline: none;
    }

    .vkm-hello {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 6px 2px 2px;
        gap: 0;
    }

    .vkm-hello__sum {
        font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
        font-size: 28px;
        font-weight: 600;
        line-height: 1.15;
        color: var(--vkm-text);
        text-shadow: none;
        max-width: none;
        margin: 0 0 14px;
        padding: 0 8px;
    }

    .vkm-hello__ico {
        display: block;
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        object-fit: contain;
        filter: none;
    }

    .vkm-hello > noindex {
        display: block;
        width: 100%;
        margin: 0 0 8px;
    }

    .vkm-hello__go {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 54px;
        padding: 14px 18px;
        border-radius: 14px;
        background: var(--vkm-amber);
        border: 1px solid rgba(233, 226, 216, .35);
        color: var(--vkm-ink);
        text-shadow: none;
        font-weight: 600;
        font-size: 17px;
        text-decoration: none;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    .vkm-hello__go:hover,
    .vkm-hello__go:focus-visible {
        color: var(--vkm-ink);
        outline: none;
    }

    .vkm-hello__skip {
        align-self: center;
        min-height: 44px;
        padding: 10px 16px;
        border: 0;
        background: none;
        color: rgba(233, 226, 216, .62);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .vkm-hello__skip:hover,
    .vkm-hello__skip:focus-visible {
        color: var(--vkm-text);
        outline: none;
    }

    .vkm-toast {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 10px);
        z-index: 55;
        align-items: center;
        gap: 10px;
        padding: 12px 10px 12px 14px;
        border-radius: 14px;
        border: 1px solid var(--vkm-line);
        background: var(--vkm-cloth);
        box-shadow: 0 10px 28px rgba(30, 26, 24, .4);
        color: var(--vkm-text);
        opacity: 0;
        transform: translateY(18px);
        pointer-events: none;
        visibility: hidden;
        transition: transform .25s ease, opacity .25s ease;
    }

    .vkm-toast.is-on {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    .vkm-toast__dot {
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--vkm-amber);
        box-shadow: none;
        color: var(--vkm-ink);
    }

    .vkm-toast__text {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 13px;
        line-height: 1.35;
        font-weight: 600;
        color: var(--vkm-text);
    }

    .vkm-toast > noindex {
        flex: 0 0 auto;
        display: flex;
    }

    .vkm-toast__go {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 10px;
        background: var(--vkm-amber);
        border: 1px solid rgba(233, 226, 216, .35);
        color: var(--vkm-ink);
        text-shadow: none;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    .vkm-toast__go:hover,
    .vkm-toast__go:focus-visible {
        color: var(--vkm-ink);
        outline: none;
    }

    .vkm-toast__x {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -4px -4px -4px 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--vkm-text);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .vkm-toast__x:hover,
    .vkm-toast__x:focus-visible {
        color: var(--vkm-text);
        outline: none;
    }

    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }

    #vkm-bonus,
    #mirror-title,
    #vkm-support,
    #comments {
        scroll-margin-top: 56px;
    }

    .vkm-ready .vkm-slots__media,
    .vkm-ready .vkm-latest__media {
        background-image: linear-gradient(145deg, var(--vkm-cloth) 0%, var(--vkm-line) 100%);
        background-color: var(--vkm-cloth);
    }

    .vkm-ready .vkm-show__game-img,
    .vkm-ready .vkm-show__post-img,
    .vkm-ready .vkm-slots__media img,
    .vkm-ready .vkm-latest__media img {
        opacity: 0;
        transition: opacity .2s ease;
    }

    .vkm-ready .vkm-show__game-img.is-loaded,
    .vkm-ready .vkm-show__post-img.is-loaded,
    .vkm-ready .vkm-slots__media img.is-loaded,
    .vkm-ready .vkm-latest__media img.is-loaded {
        opacity: 1;
    }
}

@media (max-width: 1023px) {
    #vkm-bonus,
    #mirror-title,
    #vkm-support,
    #comments {
        scroll-margin-top: 52px;
    }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (hover: none) {
    .vkm-tabbar__item,
    .vkm-hello__go,
    .vkm-hello__skip,
    .vkm-sheet__x,
    .vkm-show__deal-go {
        transition: transform .12s ease;
    }

    .vkm-show__game-btn--play,
    .vkm-offer--primary,
    .vkm-slots__btn--money {
        transition: transform .12s ease;
    }

    .vkm-tabbar__item:active,
    .vkm-hello__go:active,
    .vkm-hello__skip:active,
    .vkm-sheet__x:active,
    .vkm-show__deal-go:active {
        transform: scale(.96);
    }

    .vkm-show__game-btn--play:active,
    .vkm-offer--primary:active,
    .vkm-slots__btn--money:active {
        transform: scale(.96);
    }
}

.vkm-tabbar__more,
.vkm-tabbar__fold,
.vkm-bar {
    display: none;
}

body {
    --vkm-rail: 0px;
}

@media (min-width: 1024px) {
    body,
    .vkm-claim-on,
    .vkm-rail-slim {
        --vkm-rail: 0px;
        padding-bottom: 0;
        padding-left: 0;
    }

    .vkm-tabbar,
    .vkm-rail-slim .vkm-tabbar {
        display: none;
    }
}
