/* 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__tools .header-lang {
    margin-left: auto;
    flex-shrink: 0;
}

/* 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__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;
}

@media (max-width: 1200px) {
    .deck-header__bar {
        position: fixed;
        top: 0;
        left: 16.875rem;
        right: 0;
        z-index: 100;
        border-radius: 0;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .layout__content[style*="margin-left: 60px"] .deck-header__bar,
    .layout__content[style*="margin-left:60px"] .deck-header__bar {
        left: 60px;
    }

    .deck-header__tools {
        padding-top: 58px;
    }

    .deck-header__tool.header-button,
    .deck-header__tool_win {
        display: none;
    }

    .deck-header-menu__link {
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 61.99875em) {
    .deck-header__bar {
        left: 0;
        padding-left: 0.9375rem;
        padding-right: 0.9375rem;
    }
}

@media (max-width: 760px) {
    .deck-header__nav {
        display: none;
    }

    .deck-header__tool_apps,
    .deck-header__tool_bonus {
        display: none;
    }

    .deck-header__login {
        display: none;
    }
}
