* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --app-max-width: 480px;
    --drawer-width: 69.2%;
    --yellow: #ffdc00;
    --drawer-bg: #181818;
}

html {
    min-height: 100%;
    overflow-x: hidden;
    background: #111;
}

body {
    width: 100%;
    min-width: 320px;
    max-width: var(--app-max-width);
    min-height: 100dvh;
    margin: 0 auto;
    overflow-x: hidden;
    background: #050705;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    touch-action: pan-y;
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-user-select: none;
    user-select: none;
}

.demo-page {
    width: 100%;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 84% 25%, rgba(0, 105, 25, .42), transparent 29%),
        linear-gradient(145deg, #071009, #020302 72%);
}

.site-header {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 17px;
    border-bottom: 3px solid #d7c000;
    background: #090909;
}

.hamburger {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
}

.brand {
    flex: 1;
    color: #ffd900;
    font-size: 21px;
    font-weight: 800;
}

.deposit-top {
    min-width: 116px;
    padding: 14px 17px;
    border-radius: 0 0 19px 0;
    background: var(--yellow);
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.demo-content {
    padding: 68px 13px 30px;
}

.refresh {
    display: block;
    margin: 0 0 31px auto;
    padding: 6px 9px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #0b9d22;
    font-size: 19px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-grid div {
    min-height: 78px;
    display: grid;
    place-items: center;
    border: 2px solid #a89500;
    border-radius: 12px;
    background: #d4bd00;
    font-size: 14px;
}

.fake-line {
    height: 48px;
    margin: 18px 10px;
    border: 2px solid #e2c800;
    border-radius: 25px;
}

.fake-button {
    height: 54px;
    margin: 22px 4px;
    border-radius: 15px;
    background: #d4bd00;
}

.fake-card {
    min-height: 200px;
    margin: 16px 0;
    padding: 20px;
    border: 3px solid #d4bd00;
    border-radius: 12px;
    color: #e4d000;
    background: #101010;
    font-size: 21px;
}

.fake-card strong {
    font-size: 39px;
}

.image-card {
    color: #fff;
    background: linear-gradient(#003057aa, #00162eee), #07335a;
}

.screen-dimmer {
    position: fixed;
    z-index: 998;
    inset: 0;
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
    background: rgba(0, 0, 0, .63);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.screen-dimmer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.member-drawer {
    position: fixed;
    z-index: 999;
    top: 0;
    bottom: 0;
    left: max(0px, calc((100vw - var(--app-max-width)) / 2));
    width: min(var(--drawer-width), 332px);
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--drawer-bg);
    transform: translateX(-102%);
    transition: transform .2s ease;
    scrollbar-width: none;
}

.member-drawer::-webkit-scrollbar {
    display: none;
}

.member-drawer.is-open {
    transform: translateX(0);
}

.drawer-top {
    position: sticky;
    z-index: 10;
    top: 0;
    height: 80px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px 9px 17px;
    background: #1d1d1d;
}

.live-chat {
    height: 50px;
    flex: 1;
    display: grid;
    place-items: center;
    border: 2px solid #d7a925;
    border-radius: 21px 0 21px 8px;
    background: linear-gradient(100deg, #d39100 0%, #f8c500 31%, #ffea00 68%, #fff72a 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 rgba(0,0,0,.35);
    color: #2c7892;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .35px;
}

.close-drawer {
    position: relative;
    width: 41px;
    height: 50px;
    flex: 0 0 41px;
    padding: 0;
    border: 0;
    background: transparent;
}

.close-drawer span {
    position: absolute;
    left: 3px;
    top: 23px;
    width: 36px;
    height: 4px;
    border-radius: 5px;
    background: #fff;
}

.close-drawer span:first-child {
    transform: rotate(45deg);
}

.close-drawer span:last-child {
    transform: rotate(-45deg);
}

.menu-list {
    padding: 0 2px 28px;
}

.menu-item {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    margin: 3px 0;
    padding: 0 18px;
    overflow: hidden;
    border-radius: 32px 0 32px 5px;
    background: var(--yellow);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 0 rgba(0,0,0,.6);
}

.menu-item::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 240, 85, .35);
    transform: translateY(-50%);
}

.menu-icon {
    width: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center start;
    color: #050505;
    font-size: 28px;
    line-height: 1;
}

.menu-icon i {
    width: 34px;
    text-align: center;
}

.menu-label {
    position: relative;
    z-index: 1;
    flex: 1;
    white-space: nowrap;
    color: #101010;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: .2px;
}

.menu-badge {
    position: relative;
    z-index: 2;
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    margin-right: 17px;
    padding: 0 6px;
    border-radius: 4px;
    color: #fff;
    background: #cf211c;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 479px) {
    .member-drawer {
        width: var(--drawer-width);
    }

    .drawer-top {
        height: 16.67vw;
        min-height: 68px;
        max-height: 80px;
        padding-left: 3.55vw;
        padding-right: 3.35vw;
    }

    .live-chat {
        height: 10.42vw;
        min-height: 43px;
        max-height: 50px;
        font-size: clamp(16px, 3.75vw, 18px);
    }

    .menu-item {
        min-height: 13.33vw;
        max-height: 64px;
        padding-left: 3.75vw;
        padding-right: 3.75vw;
        border-radius: 6.67vw 0 6.67vw 5px;
    }

    .menu-icon {
        width: 10.83vw;
        flex-basis: 10.83vw;
        font-size: clamp(25px, 5.83vw, 28px);
    }

    .menu-label {
        font-size: clamp(18px, 4.38vw, 21px);
    }
}

@media (min-width: 481px) {
    body {
        box-shadow: 0 0 30px rgba(0,0,0,.55);
    }
}
