header {
    width: 100%;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 10px 15px;
    min-height: 60px;
    background: linear-gradient(90deg, #7a2268 0%, #5E174F 100%);
    gap: 16px;
}

.logo {
    width: var(--logo);
    flex-shrink: 0;
}

.logo img {
    filter: brightness(0) invert(1);
}

.header-d-games {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    overflow: hidden;
    min-width: 0;
}

.hd-label {
    font-size: 11px;
    color: #f0d0ec;
    white-space: nowrap;
    flex-shrink: 0;
}

.hd-slots {
    display: flex;
    gap: 6px;
    overflow: hidden;
}

.hd-slot {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #ffffff33;
    transition: transform .2s, border-color .2s;
    display: block;
}

.hd-slot:hover {
    transform: scale(1.1);
    border-color: #e040a0;
}

.hd-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 769px) {
    header {
        padding: 0 10px;
        min-height: 52px;
        gap: 8px;
    }

    .hd-label {
        display: none;
    }

    .hd-slot {
        width: 40px;
        height: 40px;
    }

    .hd-slots .hd-slot:nth-child(n+4) {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .hd-slots .hd-slot:nth-child(n+3) {
        display: none;
    }
}
