/* layout-5: deck-header — simplified two-row header */

.deck-header {
    position: relative;
    z-index: 5;
}

/* tools row */
.deck-header__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0 10px;
}

.deck-header__tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.deck-header__tool svg {
    fill: #fff;
    width: 14px;
    flex-shrink: 0;
}

.deck-header__tool_money img {
    max-height: 28px;
}

.deck-header__tool_bonus img {
    max-height: 32px;
}

.deck-header__tool_win {
    gap: 8px;
}

.deck-header__tool_win span {
    font-size: 10px;
}

.deck-header__tool_win small {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.deck-header__tool_win a {
    display: flex;
    width: 20px;
}

.deck-header__tool_apps {
    gap: 8px;
}

.deck-header__tool_apps a {
    display: flex;
}

.deck-header__tool_apps svg {
    width: 13px;
}

.deck-header__lang {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
}

.deck-header__lang img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* main bar */
.deck-header__bar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 12px;
    background: #151c2c;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.deck-header__logotype {
    display: none;
}

.deck-header__logo {
    display: flex;
    width: 60px;
    flex-shrink: 0;
}

.deck-header__logo img {
    width: 100%;
    height: auto;
}

.deck-header__logo_drawer {
    display: none;
}

.deck-header__menu {
    flex: 1;
    min-width: 0;
    height: 100%;
}

.deck-header__menu-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.deck-header__search {
    display: none;
}

.deck-header__nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.deck-header__nav::-webkit-scrollbar {
    display: none;
}

.deck-header-menu__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.deck-header-menu__link {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.deck-header-menu__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.deck-header-menu__item.current-menu-item .deck-header-menu__link {
    color: #fff;
    background: rgba(0, 149, 255, 0.15);
}

.deck-header__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.deck-header__login {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.85;
}

.deck-header__login:hover {
    opacity: 1;
    color: #fff;
}

.deck-header__register {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    background: #31bc69;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.deck-header__register:hover {
    background: #2ba35b;
    color: #fff;
}

.deck-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.deck-header__burger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.deck-header__burger span:nth-child(1) { top: 0; }
.deck-header__burger span:nth-child(2),
.deck-header__burger span:nth-child(3) { top: 9px; }
.deck-header__burger span:nth-child(4) { top: 18px; }

@media (max-width: 1200px) {
    .deck-header__bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        justify-content: center;
        border-radius: 0;
        z-index: 100;
    }

    .deck-header__tools {
        padding-top: 58px;
    }

    .deck-header__burger {
        display: flex;
    }

    .deck-header__tool.header-button {
        display: none;
    }

    .deck-header__menu {
        position: fixed;
        top: 50px;
        right: 0;
        width: 0;
        height: 100vh;
        overflow: hidden;
        z-index: 9996;
        background: linear-gradient(173deg, rgba(37, 46, 76, 0.98), rgba(25, 32, 51, 0.98));
        transition: width 0.5s ease;
    }

    .deck-header__menu-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 40px 16px;
    }

    .deck-header__logo_drawer {
        display: flex;
        width: 68px;
        margin-bottom: 16px;
    }

    .deck-header__search {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 16px;
        border: 1px solid #304066;
        border-radius: 8px;
    }

    .deck-header__search-label {
        flex: 1;
        display: flex;
    }

    .deck-header__search-field {
        width: 100%;
        height: 40px;
        padding: 0 10px;
        border: none;
        background: #1d273e;
        color: #fff;
        border-radius: 8px 0 0 8px;
    }

    .deck-header__search-submit {
        height: 40px;
        padding: 0 12px;
        border: none;
        border-left: 1px solid #304066;
        background: #1d273e;
    }

    .deck-header-menu__list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .deck-header-menu__item {
        border-bottom: 1px solid rgba(97, 97, 97, 0.25);
    }

    .deck-header-menu__link {
        width: 100%;
        padding: 16px 10px;
        border-radius: 0;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .deck-header__bar {
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .deck-header__tool_win {
        display: none;
    }
}
