header {
    z-index: 200;
    height: 70px;
    background-color: #101010;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0;
    overflow: visible;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

header .separator {
    width: 2px;
    height: 32px;
    background-color: #2F2F2F;
    border-radius: 2px;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.menu {
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
}

.menu .item {
    display: flex;
    align-items: center;
    margin: 0 0.75rem;
    cursor: pointer;
}

.menu .item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.menu .item .s {
    margin-left: 8px;
}

.menu .item a {
    font-family: 'SFPro', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: #ECE8E8;
    text-transform: uppercase;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.15s;
}

.menu .item a:hover {
    color: #fff;
}

.online-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.online-badge img {
    width: 20px;
    height: 20px;
}

.online-badge .s {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.online-badge .s label:first-child {
    font-family: 'SFPro';
    font-weight: 600;
    color: #fff;
    font-size: 13px;
}

.online-label {
    font-family: 'SFPro';
    font-weight: 900;
    color: #3F3F3F;
    font-size: 11px;
}

header .profile {
    display: flex;
    align-items: center;
}

.profile-wrapper {
    display: flex;
    align-items: center;
    font-family: 'SFPro';
}

.profile-img {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.profile-img img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.profile-data {
    font-size: 14px;
    margin-left: 0.5rem;
    margin-right: 1rem;
}

.profile-data-wrapper {
    display: flex;
    flex-direction: column;
}

.profile-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #fff;
}

.profile-data-wrapper span {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

header .action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
}

header .btn-solid img {
    width: 14px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #ECE8E8;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

.burger-line.open:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-line.open:nth-child(2) {
    opacity: 0;
}

.burger-line.open:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 198;
    background: rgba(0, 0, 0, 0.55);
}

.mobile-overlay.open {
    display: block;
}

@media (max-width: 1684px) {
    header {
        padding: 0 1rem;
    }

    .burger {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000000000;
        width: 260px;
        background: #101010;
        border-right: 1px solid #1e1e1e;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 1rem 2rem;
        gap: 0;
        margin-left: 0;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu.menu-open {
        transform: translateX(0);
    }

    .menu .item {
        width: 100%;
        margin: 0;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #1a1a1a;
        display: flex !important;
    }

    .menu .item a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .media img {
        width: 22px;
        height: 22px;
        margin: 0 0.2rem;
    }

    .profile-data {
        margin-left: 0.35rem;
        margin-right: 0px;
    }

    .profile-data-wrapper span {
        font-size: 11px;
    }

    header .action .btn-solid label {
        display: none;
    }

    header .action .btn-solid img {
        width: 16px;
        margin-right: unset !important;
    }
    
    

    header .header-right .action .btn {
        height: 44px;
    }

    .online-label {
        display: none;
    }

    .online-badge .s label:first-child {
        font-size: 12px;
    }

    footer .production .skin-card-price {
        margin-left: 0px !important;
    }
}

.drawer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid #1a1a1a;
}

.drawer-logo {
    height: 28px;
    width: auto;
}

.drawer-online {
    margin: 0;
}

@media (min-width: 1340px) {
    .drawer-header {
        display: none;
    }
}

@media (max-width: 608px) {
    .media {
        display: none;
    }
}

@media (max-width: 520px) {
    header .separator {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-left > .online-badge {
        display: none;
    }

    .profile-wrapper .action {
        margin-left: 0px !important;
    }

    .games-trigger {
        font-size: 12px !important;
    }
    
    .profile .profile-wrapper .profile-balance-wrapper
    {
        min-width: unset;
        display: flex;
        flex-direction: column;
    }

    .profile-data-wrapper span
    {
        width: 64px !important;
    }

    .profile .profile-wrapper .profile-balance-wrapper span
    {
        display: flex;
        flex-direction: column;
    }

    .header-left
    {
        flex: unset !important;
    }
    
    .header-right
    {
        margin-left: auto;
    }
}

.games-menu-wrap {
    position: relative;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.games-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 15px;
    border-radius: 11px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    background: #eb4b4b22;
    transition: border-color .18s, background .18s, box-shadow .18s;
    color: #eb4b4b;
}

.games-trigger:hover {
    border-color: rgba(255, 64, 82, .5);
    background: rgba(255, 64, 82, .16);
}

.games-trigger.open {
    border-color: rgba(255, 64, 82, .6);
    background: linear-gradient(180deg, rgba(255, 64, 82, .24), rgba(255, 64, 82, .07));
    box-shadow: 0 10px 26px -14px rgba(255, 64, 82, .9);
}

.games-trigger .chev {
    font-size: 9px;
    transition: transform .22s ease;
}

.games-trigger.open .chev {
    transform: rotate(180deg);
}

.games-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000000000;
}

.games-panel {
    position: absolute;
    top: calc(100% + 13px);
    left: 0;
    width: 608px;
    padding: 14px;
    display: flex;
    gap: 14px;
    border: 1px solid rgba(255, 64, 82, .14);
    border-radius: 16px;
    background: rgba(15, 12, 13, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 28px 64px -26px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    z-index: 1000000001;
    animation: gamesDrop .26s cubic-bezier(.2, .85, .25, 1);
}

@keyframes gamesDrop {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.games-sheet-head {
    display: none;
}

.games-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 172px;
    flex: none;
    border-right: 1px solid #1e1e1e;
    padding-right: 12px;
}

.games-cats-title {
    font-family: 'SFPro', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    color: #8a8488;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 4px 6px 8px;
}

.games-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'SFPro', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .15s, border-color .15s, background .15s;
    border: 1px solid transparent;
    background: transparent;
    color: #8a8488;
}

.games-cat:hover {
    color: #fff;
}

.games-cat.active {
    color: #fff;
    border-color: rgba(255, 64, 82, .42);
    background: linear-gradient(180deg, rgba(255, 64, 82, .16), rgba(255, 64, 82, .04));
}

.games-cat .cnt {
    font-weight: 700;
    font-size: 11px;
    opacity: .6;
}

.games-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    align-content: start;
}

.game-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 13px;
    cursor: pointer;
    text-align: left;
    border: 1px solid #1e1e1e;
    background: rgba(255, 255, 255, .022);
    transition: transform .16s ease, border-color .16s, background .16s;
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 64, 82, .6);
}

.game-card.active {
    border-color: rgba(255, 64, 82, .5);
    background: linear-gradient(180deg, rgba(255, 64, 82, .16), rgba(255, 64, 82, .04));
}

.game-card .tile {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 64, 82, .12);
    transition: background .2s, box-shadow .2s;
}

.game-card .tile img {
    width: 20px;
    height: 20px;
}

.game-card .nm {
    font-family: 'SFPro', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
}

.game-card .badge {
    flex: none;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 6px;
    font-family: 'SFPro', sans-serif;
    font-weight: 700;
    font-size: 8px;
    line-height: 1.3;
    letter-spacing: .06em;
    color: #fff;
}

.game-card .badge.hot {
    background: rgba(255, 64, 82, .95);
}

.game-card .badge.new {
    background: #1f9d57;
}

.game-card .badge.soon {
    background: #2a2a2a;
    color: #9a9a9a;
}

.game-card.soon {
    cursor: default;
    opacity: .55;
}

.game-card.soon:hover {
    transform: none;
    border-color: #1e1e1e;
}

@media (max-width: 720px) {
    .games-backdrop {
        background: rgba(6, 5, 7, .6);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .games-panel {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 82vh;
        border: none;
        border-top: 1px solid rgba(255, 64, 82, .2);
        border-radius: 20px 20px 0 0;
        background: rgba(13, 11, 12, .99);
        box-shadow: 0 -24px 60px -10px rgba(0, 0, 0, .7);
        animation: gamesSheetUp .32s cubic-bezier(.2, .85, .25, 1);
    }

    @keyframes gamesSheetUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .games-sheet-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px 10px;
        position: relative;
        flex: none;
    }

    .games-sheet-head::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 50%;
        transform: translateX(-50%);
        width: 38px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, .18);
    }

    .games-sheet-head .gs-title {
        font-family: 'SFPro', sans-serif;
        font-weight: 700;
        font-size: 15px;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-top: 6px;
    }

    .games-sheet-head .gs-close {
        margin-left: auto;
        margin-top: 6px;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        border: none;
        background: rgba(255, 255, 255, .06);
        color: #8a8488;
        font-size: 16px;
        cursor: pointer;
        display: grid;
        place-items: center;
    }

    .games-cats {
        flex-direction: row;
        width: auto;
        border-right: none;
        padding: 0 12px 12px;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex: none;
    }

    .games-cats::-webkit-scrollbar {
        display: none;
    }

    .games-cats-title {
        display: none;
    }

    .games-cat {
        flex: none;
        border: 1px solid #1e1e1e;
        padding: 10px 14px;
        height: 40px;
        border-radius: 20px;
    }

    .games-cat.active {
        border-color: rgba(255, 64, 82, .5);
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 12px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .game-card {
        padding: 13px 14px;
    }

    .game-card:hover {
        transform: none;
    }

    .game-card .tile {
        width: 42px;
        height: 42px;
    }

    .game-card .tile img {
        width: 22px;
        height: 22px;
    }

    .game-card .nm {
        font-size: 14px;
    }
}
